codexmate 0.1.30 → 0.1.31
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 +95 -4
- package/README.vi.md +95 -4
- package/README.zh.md +96 -4
- package/cli/config-bootstrap.js +25 -11
- package/cli.js +360 -44
- package/lib/cli-config-engine.js +260 -0
- package/lib/cli-utils.js +2 -1
- package/lib/cli-webhook.js +1 -1
- package/lib/handoff-mcp.js +282 -0
- package/lib/http-access-control.js +335 -0
- package/lib/thread-handoff.js +130 -0
- package/lib/web-startup-auth.js +49 -0
- package/lib/workflow-engine.js +92 -21
- package/lib/workflow-runner.js +261 -0
- package/package.json +1 -1
- package/web-ui/app.js +23 -2
- package/web-ui/modules/access-token.mjs +33 -0
- package/web-ui/modules/api.mjs +2 -1
- package/web-ui/modules/app.methods.index.mjs +2 -0
- package/web-ui/modules/app.methods.navigation.mjs +17 -3
- package/web-ui/modules/app.methods.prompts-editor.mjs +7 -0
- package/web-ui/modules/app.methods.providers.mjs +2 -2
- package/web-ui/modules/app.methods.runtime.mjs +3 -2
- package/web-ui/modules/app.methods.session-actions.mjs +3 -0
- package/web-ui/modules/app.methods.session-browser.mjs +6 -2
- package/web-ui/modules/app.methods.workflows.mjs +41 -0
- package/web-ui/modules/i18n/locales/en.mjs +37 -2
- package/web-ui/modules/i18n/locales/ja.mjs +37 -2
- package/web-ui/modules/i18n/locales/vi.mjs +37 -2
- package/web-ui/modules/i18n/locales/zh-tw.mjs +37 -2
- package/web-ui/modules/i18n/locales/zh.mjs +37 -2
- package/web-ui/modules/sessions-filters-url.mjs +3 -0
- package/web-ui/modules/skills.methods.mjs +6 -5
- package/web-ui/modules/thread-handoff.mjs +142 -0
- package/web-ui/partials/index/panel-config-claude.html +2 -0
- package/web-ui/partials/index/panel-config-codex.html +2 -0
- package/web-ui/partials/index/panel-config-kilocode.html +3 -1
- package/web-ui/partials/index/panel-config-openclaw.html +2 -0
- package/web-ui/partials/index/panel-config-opencode.html +3 -1
- package/web-ui/partials/index/panel-config-pi.html +2 -0
- package/web-ui/partials/index/panel-dashboard.html +59 -0
- package/web-ui/partials/index/panel-prompts.html +28 -16
- package/web-ui/partials/index/panel-sessions.html +21 -33
- package/web-ui/partials/index/thread-handoff.html +59 -0
- package/web-ui/res/web-ui-render.precompiled.js +614 -152
- package/web-ui/styles/controls-forms.css +9 -0
- package/web-ui/styles/dashboard.css +51 -0
- package/web-ui/styles/modals-core.css +87 -0
- package/web-ui/styles/navigation-panels.css +1 -1
- package/web-ui/styles/plugins-panel.css +62 -0
- package/web-ui/styles/prompts-editor.css +11 -4
- package/web-ui/styles/responsive.css +19 -10
- package/web-ui/styles/sessions-preview.css +185 -111
|
@@ -596,6 +596,15 @@
|
|
|
596
596
|
}
|
|
597
597
|
|
|
598
598
|
.tool-config-write-overlay-card {
|
|
599
|
+
position: fixed;
|
|
600
|
+
top: 50%;
|
|
601
|
+
left: 50%;
|
|
602
|
+
transform: translate(-50%, -50%);
|
|
603
|
+
z-index: 40;
|
|
604
|
+
width: min(460px, calc(100vw - 32px));
|
|
605
|
+
max-height: calc(100dvh - 32px);
|
|
606
|
+
overflow-y: auto;
|
|
607
|
+
box-sizing: border-box;
|
|
599
608
|
max-width: 460px;
|
|
600
609
|
padding: 18px 20px;
|
|
601
610
|
border: 1px solid var(--color-border-soft);
|
|
@@ -330,3 +330,54 @@
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
+
|
|
334
|
+
/* Compact workflow launcher: shared controls, progressive disclosure. */
|
|
335
|
+
.workflow-panel.selector-section { gap: 12px; padding: 20px; }
|
|
336
|
+
.workflow-header, .workflow-launch, .workflow-run-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
|
|
337
|
+
.workflow-heading, .workflow-field { min-width: 0; }
|
|
338
|
+
.workflow-title { margin: 0; color: var(--color-text-primary); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
|
|
339
|
+
.workflow-description { margin: 4px 0 0; color: var(--color-text-tertiary); font-size: 12px; line-height: 1.5; }
|
|
340
|
+
.workflow-refresh.btn-tool { width: auto; flex-shrink: 0; box-shadow: none; background: transparent; }
|
|
341
|
+
.workflow-form { display: grid; gap: 4px; }
|
|
342
|
+
.workflow-launch { align-items: flex-end; }
|
|
343
|
+
.workflow-field { flex: 1; }
|
|
344
|
+
.workflow-field .form-label { font-size: 11px; color: var(--color-text-tertiary); margin-bottom: 6px; }
|
|
345
|
+
.workflow-select.model-select { max-width: none; min-height: 44px; box-sizing: border-box; }
|
|
346
|
+
.workflow-submit.btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 20px; min-height: 44px; padding: 10px 20px; font-size: 13px; white-space: normal; }
|
|
347
|
+
.workflow-submit:disabled { opacity: .5; cursor: not-allowed; }
|
|
348
|
+
.workflow-options { min-width: 0; margin-top: 8px; }
|
|
349
|
+
.workflow-options > summary, .workflow-history > summary { cursor: pointer; min-height: 36px; align-content: center; color: var(--color-text-secondary); font-size: 12px; }
|
|
350
|
+
.workflow-option-kind { margin-inline-start: 8px; color: var(--color-text-tertiary); font-family: var(--font-family-mono); font-size: 10px; }
|
|
351
|
+
.workflow-options > .workflow-field { padding-top: 8px; }
|
|
352
|
+
.workflow-options .form-hint { margin: 8px 0; }
|
|
353
|
+
.workflow-json { box-sizing: border-box; min-width: 0; font-family: var(--font-family-mono); font-size: 12px; line-height: 1.6; resize: vertical; }
|
|
354
|
+
.workflow-authorization { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--color-text-tertiary); font-size: 12px; cursor: pointer; }
|
|
355
|
+
.workflow-authorization input { margin: 0; accent-color: var(--color-brand); flex-shrink: 0; }
|
|
356
|
+
.workflow-history { border-top: 1px solid var(--color-border-soft); padding-top: 8px; min-width: 0; }
|
|
357
|
+
.workflow-history-title { font-weight: 500; }
|
|
358
|
+
.workflow-count { margin-inline-start: 8px; color: var(--color-text-tertiary); font-variant-numeric: tabular-nums; }
|
|
359
|
+
.workflow-empty { padding: 4px 0 12px; }
|
|
360
|
+
.workflow-empty .form-hint { margin: 0; }
|
|
361
|
+
.workflow-run { min-width: 0; padding: 16px 0; }
|
|
362
|
+
.workflow-run + .workflow-run { border-top: 1px solid var(--color-border-soft); }
|
|
363
|
+
.workflow-run-header { align-items: baseline; flex-wrap: wrap; gap: 8px; }
|
|
364
|
+
.workflow-run-header h4 { margin: 0; min-width: 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
|
|
365
|
+
.workflow-status { font-size: 11px; color: var(--color-text-tertiary); overflow-wrap: anywhere; }
|
|
366
|
+
.workflow-status[data-status="running"], .workflow-status[data-status="queued"] { color: var(--color-brand-dark); }
|
|
367
|
+
.workflow-status[data-status="completed"] { color: var(--color-success); }
|
|
368
|
+
.workflow-status[data-status="failed"], .workflow-status[data-status="waiting"] { color: var(--color-error); }
|
|
369
|
+
.workflow-run-id { margin: 6px 0 8px; font-size: 10px; color: var(--color-text-tertiary); overflow-wrap: anywhere; }
|
|
370
|
+
.workflow-run-reason { margin: 0 0 8px; font-size: 12px; color: var(--color-text-secondary); overflow-wrap: anywhere; }
|
|
371
|
+
.workflow-run-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
|
|
372
|
+
.workflow-run-actions > .btn-tool { width: auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
|
|
373
|
+
.workflow-panel .workflow-run-actions > .btn-tool + .btn-tool { margin: 0; }
|
|
374
|
+
.workflow-details { min-width: 0; font-size: 12px; color: var(--color-text-secondary); }
|
|
375
|
+
.workflow-details > summary { min-height: 36px; align-content: center; cursor: pointer; }
|
|
376
|
+
.workflow-details pre { max-height: 320px; margin: 8px 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
377
|
+
.workflow-panel :is(button, select, summary, input):focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
|
|
378
|
+
@media (max-width: 640px) {
|
|
379
|
+
.workflow-panel.selector-section { padding: 16px; }
|
|
380
|
+
.workflow-launch { flex-direction: column; align-items: stretch; gap: 12px; }
|
|
381
|
+
.workflow-header { gap: 12px; align-items: flex-start; }
|
|
382
|
+
.workflow-run-actions > .btn-tool { flex: 1 1 100%; }
|
|
383
|
+
}
|
|
@@ -667,7 +667,9 @@
|
|
|
667
667
|
display: flex;
|
|
668
668
|
align-items: center;
|
|
669
669
|
justify-content: space-between;
|
|
670
|
+
flex-wrap: nowrap;
|
|
670
671
|
gap: 12px;
|
|
672
|
+
min-width: 0;
|
|
671
673
|
margin-bottom: 8px;
|
|
672
674
|
}
|
|
673
675
|
|
|
@@ -680,13 +682,98 @@
|
|
|
680
682
|
display: flex;
|
|
681
683
|
gap: 6px;
|
|
682
684
|
flex-shrink: 0;
|
|
685
|
+
flex-wrap: nowrap;
|
|
683
686
|
align-items: center;
|
|
687
|
+
min-width: 0;
|
|
684
688
|
}
|
|
685
689
|
|
|
686
690
|
.prompts-editor-group {
|
|
687
691
|
display: flex;
|
|
688
692
|
gap: 6px;
|
|
689
693
|
align-items: center;
|
|
694
|
+
flex-shrink: 0;
|
|
695
|
+
white-space: nowrap;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
.prompts-path-summary-wrap {
|
|
699
|
+
flex: 1 1 auto;
|
|
700
|
+
min-width: 0;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
.prompts-path-summary {
|
|
704
|
+
position: relative;
|
|
705
|
+
min-width: 0;
|
|
706
|
+
max-width: 100%;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.prompts-path-summary-trigger {
|
|
710
|
+
display: flex;
|
|
711
|
+
align-items: center;
|
|
712
|
+
gap: 4px;
|
|
713
|
+
min-width: 0;
|
|
714
|
+
max-width: 100%;
|
|
715
|
+
padding: 4px 6px;
|
|
716
|
+
border-radius: var(--radius-sm);
|
|
717
|
+
color: var(--color-text-secondary);
|
|
718
|
+
font-size: var(--font-size-caption);
|
|
719
|
+
cursor: pointer;
|
|
720
|
+
list-style: none;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
.prompts-path-summary-trigger::-webkit-details-marker {
|
|
724
|
+
display: none;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.prompts-path-summary-trigger:hover {
|
|
728
|
+
color: var(--color-brand);
|
|
729
|
+
background: var(--color-brand-light);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
.prompts-path-summary-trigger:focus-visible {
|
|
733
|
+
outline: 2px solid var(--color-brand);
|
|
734
|
+
outline-offset: 2px;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.prompts-path-summary-name {
|
|
738
|
+
flex: 0 1 auto;
|
|
739
|
+
min-width: 0;
|
|
740
|
+
overflow: hidden;
|
|
741
|
+
text-overflow: ellipsis;
|
|
742
|
+
white-space: nowrap;
|
|
743
|
+
font-weight: 600;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.prompts-token-hint {
|
|
747
|
+
flex: 0 0 auto;
|
|
748
|
+
white-space: nowrap;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.prompts-path-summary-popover {
|
|
752
|
+
position: absolute;
|
|
753
|
+
top: calc(100% + 6px);
|
|
754
|
+
left: 0;
|
|
755
|
+
z-index: 40;
|
|
756
|
+
display: grid;
|
|
757
|
+
gap: 4px;
|
|
758
|
+
width: max-content;
|
|
759
|
+
max-width: min(520px, calc(100vw - 48px));
|
|
760
|
+
padding: 8px 10px;
|
|
761
|
+
border: 1px solid var(--color-border);
|
|
762
|
+
border-radius: var(--radius-md);
|
|
763
|
+
background: var(--color-bg-card);
|
|
764
|
+
box-shadow: var(--shadow-raised);
|
|
765
|
+
color: var(--color-text-secondary);
|
|
766
|
+
font-size: var(--font-size-caption);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.prompts-path-summary-popover-label {
|
|
770
|
+
color: var(--color-text-tertiary);
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
.prompts-path-summary-popover code {
|
|
774
|
+
color: var(--color-text);
|
|
775
|
+
white-space: normal;
|
|
776
|
+
overflow-wrap: anywhere;
|
|
690
777
|
}
|
|
691
778
|
|
|
692
779
|
.prompts-editor-group--secondary .btn-mini {
|
|
@@ -562,3 +562,65 @@
|
|
|
562
562
|
grid-template-columns: 1fr;
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
+
|
|
566
|
+
/* Match the instruction-file editor: flat workspace, underlined tabs and quiet tools. */
|
|
567
|
+
#panel-plugins { container-type: inline-size; }
|
|
568
|
+
#panel-plugins .plugins-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
|
|
569
|
+
#panel-plugins .plugins-sidebar { padding: 0; border: 0; background: transparent; box-shadow: none; }
|
|
570
|
+
#panel-plugins .plugins-sidebar-header { display: none; }
|
|
571
|
+
#panel-plugins .plugins-sidebar-header .plugins-panel-note { display: none; }
|
|
572
|
+
#panel-plugins .plugins-list { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; border-bottom: 1px solid var(--color-border-soft); }
|
|
573
|
+
#panel-plugins .plugins-item { width: auto; min-height: 44px; padding: 7px 10px 8px; gap: 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
|
|
574
|
+
#panel-plugins .plugins-item-meta, #panel-plugins .plugins-item > .pill { display: none; }
|
|
575
|
+
#panel-plugins .plugins-item:hover { transform: none; background: transparent; }
|
|
576
|
+
#panel-plugins .plugins-item.active { background: transparent; color: var(--color-brand-dark); border-bottom-color: var(--color-brand); box-shadow: none; }
|
|
577
|
+
#panel-plugins .plugins-item.active .plugins-item-title { color: var(--color-brand-dark); }
|
|
578
|
+
#panel-plugins .plugins-item.active::before { display: none; }
|
|
579
|
+
#panel-plugins .plugins-item-title { font-size: 13px; }
|
|
580
|
+
#panel-plugins .plugins-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
|
|
581
|
+
#panel-plugins .plugins-panel-head { margin-bottom: 8px; align-items: center; gap: 12px; }
|
|
582
|
+
#panel-plugins .plugins-panel-title { font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
|
|
583
|
+
#panel-plugins .plugins-panel-note { line-height: 1.65; overflow-wrap: anywhere; }
|
|
584
|
+
#panel-plugins .prompt-templates-modebar { padding: 0; gap: 2px; margin-bottom: 12px; border: 0; border-bottom: 1px solid var(--color-border-soft); border-radius: 0; background: transparent; backdrop-filter: none; }
|
|
585
|
+
#panel-plugins .mode-pill { position: relative; min-height: 44px; padding: 7px 10px 8px; border-radius: 0; letter-spacing: 0; }
|
|
586
|
+
#panel-plugins .mode-pill.active { background: transparent; color: var(--color-brand-dark); box-shadow: none; }
|
|
587
|
+
#panel-plugins .mode-pill.active::after { content: ''; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--color-brand); }
|
|
588
|
+
#panel-plugins .mode-pill:hover:not(.active) { background: transparent; color: var(--color-text-primary); }
|
|
589
|
+
#panel-plugins .prompt-compose-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
|
|
590
|
+
#panel-plugins .prompt-compose-main { gap: 24px; align-content: start; }
|
|
591
|
+
#panel-plugins .prompt-compose-form { display: grid; gap: 8px; }
|
|
592
|
+
#panel-plugins .form-label { margin: 0; font-size: 13px; font-weight: 600; }
|
|
593
|
+
#panel-plugins .prompt-vars-block { margin: 0; padding: 0; border: 0; background: transparent; }
|
|
594
|
+
#panel-plugins .prompt-vars-head { align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
|
|
595
|
+
#panel-plugins .prompt-vars-title { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
|
|
596
|
+
#panel-plugins .prompt-vars-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
|
|
597
|
+
#panel-plugins .prompt-var-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
|
|
598
|
+
#panel-plugins .prompt-var-label { color: var(--color-text-secondary); overflow-wrap: anywhere; }
|
|
599
|
+
#panel-plugins .prompt-preview-block { margin: 0; padding: 0 0 0 16px; border: 0; border-left: 1px solid var(--color-border-soft); border-radius: 0; background: transparent; }
|
|
600
|
+
#panel-plugins .prompt-compose-preview { display: flex; flex-direction: column; min-height: 360px; }
|
|
601
|
+
#panel-plugins .prompt-preview-textarea { flex: 1; width: 100%; min-height: 240px; padding: 16px; border: 0; background: var(--color-surface-alt); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; resize: vertical; }
|
|
602
|
+
#panel-plugins .prompt-templates-grid { grid-template-columns: minmax(240px, .75fr) minmax(0, 1.5fr); gap: 32px; }
|
|
603
|
+
#panel-plugins .prompt-templates-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
|
|
604
|
+
#panel-plugins .prompt-templates-toolbar .form-input { grid-column: 1 / -1; min-width: 0; }
|
|
605
|
+
#panel-plugins .prompt-template-item { border: 0; box-shadow: none; background: transparent; padding: 16px 12px; border-radius: 8px; }
|
|
606
|
+
#panel-plugins .prompt-template-item:hover { transform: none; background: var(--color-surface-alt); }
|
|
607
|
+
#panel-plugins .prompt-template-item.active { background: var(--color-brand-light); box-shadow: none; }
|
|
608
|
+
#panel-plugins .prompt-editor-head { padding: 0; border: 0; border-radius: 0; background: transparent; gap: 12px; margin-bottom: 20px; }
|
|
609
|
+
#panel-plugins .prompt-editor-name { min-width: 0; font-size: 16px; font-weight: 600; }
|
|
610
|
+
#panel-plugins .prompt-editor-textarea { width: 100%; min-height: 240px; line-height: 1.8; white-space: pre-wrap; }
|
|
611
|
+
#panel-plugins :is(.form-input, .form-select) { max-width: 100%; min-height: 44px; border-radius: 8px; }
|
|
612
|
+
#panel-plugins .btn-mini { min-height: 44px; padding: 8px 12px; }
|
|
613
|
+
#panel-plugins .prompt-compose-preview > .prompt-vars-head > .btn-mini { background: transparent; color: var(--color-text-secondary); border-color: var(--color-border-soft); }
|
|
614
|
+
#panel-plugins button { transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
|
|
615
|
+
#panel-plugins button:active:not(:disabled) { opacity: .8; }
|
|
616
|
+
#panel-plugins button:disabled { opacity: .45; cursor: not-allowed; }
|
|
617
|
+
#panel-plugins :is(button, input, select, textarea):focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
|
|
618
|
+
@container (max-width: 800px) {
|
|
619
|
+
#panel-plugins .prompt-compose-workspace, #panel-plugins .prompt-templates-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
|
|
620
|
+
#panel-plugins .plugins-panel { padding: 0; }
|
|
621
|
+
#panel-plugins .prompt-compose-preview { padding-left: 0; border-left: 0; }
|
|
622
|
+
#panel-plugins .prompt-compose-preview { min-height: 300px; }
|
|
623
|
+
}
|
|
624
|
+
@media (prefers-reduced-motion: reduce) {
|
|
625
|
+
#panel-plugins button { transition: none; }
|
|
626
|
+
}
|
|
@@ -335,16 +335,23 @@
|
|
|
335
335
|
|
|
336
336
|
|
|
337
337
|
.prompts-editor-group--pathref .prompts-path-reference-select {
|
|
338
|
-
width:
|
|
339
|
-
max-width:
|
|
340
|
-
min-width:
|
|
338
|
+
width: 180px;
|
|
339
|
+
max-width: 180px;
|
|
340
|
+
min-width: 180px;
|
|
341
341
|
padding: 5px 8px;
|
|
342
342
|
font-size: var(--font-size-caption);
|
|
343
343
|
color: var(--color-text-secondary);
|
|
344
344
|
cursor: pointer;
|
|
345
|
-
flex
|
|
345
|
+
flex: 0 0 180px;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
+
@media (max-width: 540px) {
|
|
349
|
+
.prompts-editor-group--pathref .prompts-path-reference-select {
|
|
350
|
+
width: 112px;
|
|
351
|
+
min-width: 112px;
|
|
352
|
+
max-width: 112px;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
348
355
|
.prompts-editor-group--pathref .prompts-path-reference-select:disabled {
|
|
349
356
|
opacity: 0.6;
|
|
350
357
|
cursor: not-allowed;
|
|
@@ -207,14 +207,15 @@ textarea:focus-visible {
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
.prompts-editor-toolbar {
|
|
210
|
-
flex-direction:
|
|
211
|
-
align-items:
|
|
210
|
+
flex-direction: row;
|
|
211
|
+
align-items: center;
|
|
212
|
+
flex-wrap: nowrap;
|
|
212
213
|
gap: 8px;
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
.prompts-editor-actions {
|
|
216
|
-
width:
|
|
217
|
-
flex-wrap:
|
|
217
|
+
width: auto;
|
|
218
|
+
flex-wrap: nowrap;
|
|
218
219
|
}
|
|
219
220
|
|
|
220
221
|
.prompt-presets-inline-row {
|
|
@@ -636,19 +637,27 @@ textarea:focus-visible {
|
|
|
636
637
|
}
|
|
637
638
|
|
|
638
639
|
.prompts-editor-actions .btn-mini {
|
|
639
|
-
|
|
640
|
-
|
|
640
|
+
width: 44px;
|
|
641
|
+
min-width: 44px;
|
|
642
|
+
min-height: 44px;
|
|
643
|
+
padding: 0;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.prompts-editor-group--edit .btn-mini:nth-child(3),
|
|
647
|
+
.prompts-editor-group--edit .btn-mini:nth-child(4) {
|
|
648
|
+
display: none;
|
|
641
649
|
}
|
|
642
650
|
|
|
643
651
|
.prompts-editor-toolbar {
|
|
644
|
-
flex-direction:
|
|
645
|
-
align-items:
|
|
652
|
+
flex-direction: row;
|
|
653
|
+
align-items: center;
|
|
654
|
+
flex-wrap: nowrap;
|
|
646
655
|
gap: 8px;
|
|
647
656
|
}
|
|
648
657
|
|
|
649
658
|
.prompts-editor-actions {
|
|
650
|
-
width:
|
|
651
|
-
flex-wrap:
|
|
659
|
+
width: auto;
|
|
660
|
+
flex-wrap: nowrap;
|
|
652
661
|
}
|
|
653
662
|
|
|
654
663
|
.prompt-presets-inline-row {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
overflow-y: auto;
|
|
12
12
|
overflow-x: hidden;
|
|
13
13
|
padding-right: 52px;
|
|
14
|
-
padding-bottom:
|
|
15
|
-
scroll-padding-bottom:
|
|
14
|
+
padding-bottom: 8px;
|
|
15
|
+
scroll-padding-bottom: 8px;
|
|
16
16
|
display: flex;
|
|
17
17
|
flex-direction: column;
|
|
18
18
|
scrollbar-width: none;
|
|
@@ -255,126 +255,66 @@
|
|
|
255
255
|
line-height: 1.45;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
+
/* Reading index: retain message keys and scroll linkage without crowded markers. */
|
|
258
259
|
.session-timeline {
|
|
259
260
|
position: absolute;
|
|
260
261
|
top: var(--session-preview-header-offset, 72px);
|
|
261
|
-
right:
|
|
262
|
+
right: 8px;
|
|
262
263
|
bottom: 12px;
|
|
263
|
-
width:
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
box-shadow: var(--shadow-card);
|
|
269
|
-
padding: 6px 4px 28px;
|
|
264
|
+
width: 144px;
|
|
265
|
+
display: flex;
|
|
266
|
+
flex-direction: column;
|
|
267
|
+
gap: 12px;
|
|
268
|
+
padding: 12px 8px;
|
|
270
269
|
z-index: 3;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.session-timeline-track {
|
|
274
|
-
position: absolute;
|
|
275
|
-
left: 50%;
|
|
276
|
-
top: 10px;
|
|
277
|
-
bottom: 32px;
|
|
278
|
-
width: 2px;
|
|
279
|
-
transform: translateX(-50%);
|
|
280
|
-
background: var(--color-border-soft);
|
|
281
|
-
border-radius: 999px;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.session-timeline-node {
|
|
285
|
-
position: absolute;
|
|
286
|
-
left: 50%;
|
|
287
|
-
width: 10px;
|
|
288
|
-
height: 10px;
|
|
289
|
-
border-radius: 50%;
|
|
290
|
-
border: 1px solid var(--color-border-strong);
|
|
291
|
-
background: var(--color-surface);
|
|
292
|
-
transform: translate(-50%, -50%);
|
|
293
|
-
cursor: pointer;
|
|
294
|
-
padding: 0;
|
|
295
|
-
transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring), box-shadow var(--transition-fast) var(--ease-spring);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.session-timeline-node:hover {
|
|
299
|
-
border-color: var(--color-brand);
|
|
300
270
|
background: var(--color-surface);
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
.session-timeline-node.active {
|
|
305
|
-
border-color: var(--color-brand);
|
|
306
|
-
background: var(--color-brand);
|
|
307
|
-
box-shadow: 0 0 0 3px rgba(210, 107, 90, 0.2);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.session-timeline-current {
|
|
311
|
-
position: absolute;
|
|
312
|
-
left: 3px;
|
|
313
|
-
right: 3px;
|
|
314
|
-
bottom: 4px;
|
|
315
|
-
font-size: 10px;
|
|
316
|
-
line-height: 1.2;
|
|
317
|
-
color: var(--color-text-tertiary);
|
|
318
|
-
text-align: center;
|
|
319
|
-
white-space: nowrap;
|
|
320
|
-
overflow: hidden;
|
|
321
|
-
text-overflow: ellipsis;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/* 条状时间线 */
|
|
325
|
-
.session-timeline-bar {
|
|
326
|
-
width: 8px;
|
|
327
|
-
padding: 0;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
.session-timeline-bar-track {
|
|
331
|
-
position: absolute;
|
|
332
|
-
left: 50%;
|
|
333
|
-
top: 10px;
|
|
334
|
-
bottom: 32px;
|
|
335
|
-
width: 6px;
|
|
336
|
-
transform: translateX(-50%);
|
|
337
|
-
background: var(--color-border-soft);
|
|
338
|
-
border-radius: 3px;
|
|
271
|
+
border: 0;
|
|
272
|
+
border-radius: 12px;
|
|
273
|
+
box-shadow: none;
|
|
339
274
|
overflow: hidden;
|
|
340
275
|
}
|
|
341
|
-
|
|
342
|
-
.session-timeline-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
276
|
+
.session-timeline-heading { display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
|
|
277
|
+
.session-timeline-heading > span:first-child { font-size: 12px; font-weight: 600; color: var(--color-text-secondary); }
|
|
278
|
+
.session-timeline-count { font-size: 11px; color: var(--color-text-tertiary); }
|
|
279
|
+
.session-timeline-reading-progress { flex-shrink: 0; height: 2px; margin: 0 8px; background: var(--color-border-soft); border-radius: 2px; overflow: hidden; }
|
|
280
|
+
.session-timeline-reading-progress > span { display: block; height: 100%; background: var(--color-brand); transition: width 180ms ease; }
|
|
281
|
+
.session-timeline-index { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--color-border-soft) transparent; }
|
|
282
|
+
.session-timeline-node {
|
|
283
|
+
position: relative;
|
|
284
|
+
display: flex;
|
|
285
|
+
align-items: center;
|
|
286
|
+
gap: 8px;
|
|
287
|
+
flex-shrink: 0;
|
|
347
288
|
width: 100%;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
left: 50%;
|
|
356
|
-
width: 12px;
|
|
357
|
-
height: 12px;
|
|
358
|
-
border-radius: 50%;
|
|
359
|
-
border: 2px solid var(--color-border-strong);
|
|
360
|
-
background: var(--color-surface);
|
|
361
|
-
transform: translate(-50%, -50%);
|
|
289
|
+
min-height: 48px;
|
|
290
|
+
padding: 8px;
|
|
291
|
+
border: 0;
|
|
292
|
+
border-radius: 8px;
|
|
293
|
+
background: transparent;
|
|
294
|
+
color: var(--color-text-tertiary);
|
|
295
|
+
text-align: left;
|
|
362
296
|
cursor: pointer;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.session-timeline-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
297
|
+
transition: background 160ms ease, color 160ms ease;
|
|
298
|
+
}
|
|
299
|
+
.session-timeline-number { min-width: 28px; font-size: 11px; font-variant-numeric: tabular-nums; }
|
|
300
|
+
.session-timeline-label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
301
|
+
.session-timeline-role { font-size: 12px; font-weight: 500; color: var(--color-text-secondary); }
|
|
302
|
+
.session-timeline-time { font-size: 11px; font-variant-numeric: tabular-nums; }
|
|
303
|
+
.session-timeline-indicator { margin-left: auto; flex-shrink: 0; width: 4px; height: 16px; border-radius: 4px; background: transparent; }
|
|
304
|
+
.session-timeline-node:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
|
|
305
|
+
.session-timeline-node.active { background: var(--color-brand-light); color: var(--color-brand-dark); box-shadow: none; }
|
|
306
|
+
.session-timeline-node.active .session-timeline-role { color: var(--color-text-primary); font-weight: 600; }
|
|
307
|
+
.session-timeline-node.active .session-timeline-indicator { background: var(--color-brand); }
|
|
308
|
+
.session-timeline-node:active { background: var(--color-brand-subtle); }
|
|
309
|
+
.session-timeline-node:focus-visible { outline: 2px solid var(--color-brand); outline-offset: -2px; }
|
|
310
|
+
.session-timeline-current { position: static; display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-top: auto; padding: 4px 8px 0; font-size: 11px; line-height: 1.5; color: var(--color-text-tertiary); }
|
|
311
|
+
.session-timeline-status-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--color-brand); }
|
|
312
|
+
.session-timeline-bar .session-timeline-reading-progress { height: 4px; }
|
|
313
|
+
@media (min-width: 1101px) {
|
|
314
|
+
.session-preview-scroll { padding-right: 164px; }
|
|
372
315
|
}
|
|
373
|
-
|
|
374
|
-
.session-timeline-
|
|
375
|
-
border-color: var(--color-brand);
|
|
376
|
-
background: var(--color-brand);
|
|
377
|
-
box-shadow: 0 0 0 3px rgba(210, 107, 90, 0.2);
|
|
316
|
+
@media (prefers-reduced-motion: reduce) {
|
|
317
|
+
.session-timeline *, .session-timeline *::before { transition: none; scroll-behavior: auto; }
|
|
378
318
|
}
|
|
379
319
|
|
|
380
320
|
.session-msg {
|
|
@@ -845,3 +785,137 @@
|
|
|
845
785
|
#panel-sessions .session-preview-actions button { transition: none; }
|
|
846
786
|
#panel-sessions .session-preview-actions button:active:not(:disabled) { transform: none; }
|
|
847
787
|
}
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
/* Scoped handoff form: quiet surface, full-width fields, one primary action. */
|
|
791
|
+
#panel-sessions .thread-handoff {
|
|
792
|
+
flex-shrink: 0;
|
|
793
|
+
display: block;
|
|
794
|
+
padding: 0;
|
|
795
|
+
border: 0;
|
|
796
|
+
border-radius: 12px;
|
|
797
|
+
background: var(--color-surface-alt);
|
|
798
|
+
box-shadow: none;
|
|
799
|
+
overflow: hidden;
|
|
800
|
+
}
|
|
801
|
+
.thread-handoff-summary {
|
|
802
|
+
display: flex;
|
|
803
|
+
align-items: center;
|
|
804
|
+
gap: 12px;
|
|
805
|
+
min-height: 56px;
|
|
806
|
+
padding: 12px 20px;
|
|
807
|
+
cursor: pointer;
|
|
808
|
+
list-style: none;
|
|
809
|
+
font-size: 14px;
|
|
810
|
+
font-weight: 600;
|
|
811
|
+
color: var(--color-text-primary);
|
|
812
|
+
transition: background 160ms ease;
|
|
813
|
+
}
|
|
814
|
+
.thread-handoff-summary::-webkit-details-marker { display: none; }
|
|
815
|
+
.thread-handoff-summary::before {
|
|
816
|
+
content: '';
|
|
817
|
+
width: 6px;
|
|
818
|
+
height: 6px;
|
|
819
|
+
border-right: 1.5px solid currentColor;
|
|
820
|
+
border-bottom: 1.5px solid currentColor;
|
|
821
|
+
transform: rotate(-45deg);
|
|
822
|
+
transition: transform 160ms ease;
|
|
823
|
+
}
|
|
824
|
+
.thread-handoff[open] > .thread-handoff-summary::before { transform: rotate(45deg); }
|
|
825
|
+
.thread-handoff-summary-hint {
|
|
826
|
+
margin-left: auto;
|
|
827
|
+
font-size: 12px;
|
|
828
|
+
font-weight: 400;
|
|
829
|
+
color: var(--color-text-tertiary);
|
|
830
|
+
}
|
|
831
|
+
.thread-handoff-body { display: grid; gap: 20px; padding: 0 20px 20px; }
|
|
832
|
+
.thread-handoff-body .session-workspace-header { align-items: center; }
|
|
833
|
+
.thread-handoff-body .session-workspace-subtitle { margin: 0; }
|
|
834
|
+
.thread-handoff-form { display: grid; gap: 20px; min-width: 0; }
|
|
835
|
+
.thread-handoff-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
836
|
+
.thread-handoff-field .session-workspace-card-title { margin: 0; font-size: 13px; }
|
|
837
|
+
.thread-handoff small { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--color-text-tertiary); }
|
|
838
|
+
#panel-sessions .thread-handoff .session-query-input {
|
|
839
|
+
width: 100%;
|
|
840
|
+
max-width: none;
|
|
841
|
+
min-width: 0;
|
|
842
|
+
min-height: 44px;
|
|
843
|
+
box-sizing: border-box;
|
|
844
|
+
padding: 12px;
|
|
845
|
+
border-radius: 8px;
|
|
846
|
+
font-size: 13px;
|
|
847
|
+
background: var(--color-surface);
|
|
848
|
+
}
|
|
849
|
+
#panel-sessions .thread-handoff textarea.session-query-input { min-height: 96px; resize: vertical; line-height: 1.6; }
|
|
850
|
+
.thread-handoff-optional-summary {
|
|
851
|
+
display: flex;
|
|
852
|
+
align-items: center;
|
|
853
|
+
flex-wrap: wrap;
|
|
854
|
+
min-height: 44px;
|
|
855
|
+
cursor: pointer;
|
|
856
|
+
font-size: 13px;
|
|
857
|
+
color: var(--color-text-secondary);
|
|
858
|
+
}
|
|
859
|
+
.thread-handoff-optional[open] .session-workspace-grid {
|
|
860
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
|
|
861
|
+
margin-top: 12px;
|
|
862
|
+
gap: 16px;
|
|
863
|
+
}
|
|
864
|
+
.thread-handoff-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
|
|
865
|
+
.thread-handoff .btn-mini { min-height: 44px; padding: 8px 16px; transition: background 160ms ease, color 160ms ease; }
|
|
866
|
+
#panel-sessions .thread-handoff-submit { background: var(--color-brand); color: #fff; border-color: transparent; }
|
|
867
|
+
#panel-sessions .thread-handoff-submit:hover:not(:disabled) { background: var(--color-brand-dark); }
|
|
868
|
+
#panel-sessions .thread-handoff-submit:disabled { opacity: .45; cursor: not-allowed; }
|
|
869
|
+
.thread-handoff-summary:hover { background: var(--color-brand-light); }
|
|
870
|
+
.thread-handoff-summary:active { background: var(--color-brand-subtle); }
|
|
871
|
+
.thread-handoff summary:focus-visible, .thread-handoff button:focus-visible {
|
|
872
|
+
outline: 2px solid var(--color-brand); outline-offset: -2px;
|
|
873
|
+
}
|
|
874
|
+
@media (max-width: 640px) {
|
|
875
|
+
.thread-handoff-summary { padding: 12px 16px; }
|
|
876
|
+
.thread-handoff-body { padding: 0 16px 16px; gap: 16px; }
|
|
877
|
+
.thread-handoff-body .session-workspace-header { align-items: flex-start; }
|
|
878
|
+
.thread-handoff-actions { align-items: stretch; flex-direction: column; gap: 12px; }
|
|
879
|
+
.thread-handoff-optional-summary small { width: 100%; margin: 4px 0 8px; }
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/* Keep the session tab close to the viewport edge without changing other tabs. */
|
|
883
|
+
.main-panel:has(#panel-sessions:not([style*="display: none"])) {
|
|
884
|
+
padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
/* Fill the actual remaining viewport rather than subtracting a fixed header estimate. */
|
|
888
|
+
@media (min-width: 1101px) {
|
|
889
|
+
.main-panel:has(#panel-sessions:not([style*="display: none"])) {
|
|
890
|
+
display: flex;
|
|
891
|
+
flex-direction: column;
|
|
892
|
+
padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
|
|
893
|
+
}
|
|
894
|
+
.main-panel:has(#panel-sessions:not([style*="display: none"])) > .main-panel-topbar {
|
|
895
|
+
flex-shrink: 0;
|
|
896
|
+
}
|
|
897
|
+
.content-wrapper:has(#panel-sessions:not([style*="display: none"])) {
|
|
898
|
+
display: flex;
|
|
899
|
+
flex: 1;
|
|
900
|
+
min-height: 0;
|
|
901
|
+
padding-bottom: 0;
|
|
902
|
+
}
|
|
903
|
+
#panel-sessions.session-browser-refined {
|
|
904
|
+
display: flex;
|
|
905
|
+
flex: 1;
|
|
906
|
+
flex-direction: column;
|
|
907
|
+
min-height: 0;
|
|
908
|
+
}
|
|
909
|
+
#panel-sessions > div:has(> .session-layout) {
|
|
910
|
+
display: flex;
|
|
911
|
+
flex: 1;
|
|
912
|
+
flex-direction: column;
|
|
913
|
+
min-height: 0;
|
|
914
|
+
}
|
|
915
|
+
#panel-sessions > div:has(> .session-layout) > :not(.session-layout) { flex-shrink: 0; }
|
|
916
|
+
#panel-sessions .session-layout {
|
|
917
|
+
flex: 1;
|
|
918
|
+
height: auto;
|
|
919
|
+
min-height: 0;
|
|
920
|
+
}
|
|
921
|
+
}
|