dsh-connect-workbuddy 5.18.2 → 5.19.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/CHANGELOG.md +150 -0
- package/README.en.md +7 -5
- package/README.md +11 -6
- package/lib/bin.js +1 -1
- package/lib/client.js +547 -216
- package/lib/{host-heartbeat-DFqDsnte.js → host-heartbeat-uMQXkyai.js} +1 -1
- package/lib/index.js +6 -6
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -670,30 +670,35 @@ window.__ModuleLoader__.load({
|
|
|
670
670
|
WORKBUDDY_SETTINGS_NS
|
|
671
671
|
];
|
|
672
672
|
/**
|
|
673
|
-
* The
|
|
674
|
-
*
|
|
675
|
-
*
|
|
676
|
-
*
|
|
677
|
-
*
|
|
678
|
-
*
|
|
679
|
-
*
|
|
680
|
-
*
|
|
681
|
-
*
|
|
682
|
-
*
|
|
683
|
-
*
|
|
684
|
-
*
|
|
685
|
-
*
|
|
686
|
-
* `
|
|
687
|
-
*
|
|
688
|
-
*
|
|
689
|
-
*
|
|
690
|
-
*
|
|
691
|
-
*
|
|
692
|
-
*
|
|
693
|
-
*
|
|
694
|
-
*
|
|
695
|
-
|
|
696
|
-
|
|
673
|
+
* The `id` of this plugin's page in the Settings panel's left-hand navigation.
|
|
674
|
+
*
|
|
675
|
+
* ## Why the configuration moved here (5.19.0)
|
|
676
|
+
*
|
|
677
|
+
* It used to live ONLY in the Plugins page's `plugins.bundle.config` /
|
|
678
|
+
* `plugins.row.config` keyed slots, looked up by `<package name>`. That is a
|
|
679
|
+
* KEYED slot: the page renders it with `entryKey: pkg.name` and gates the whole
|
|
680
|
+
* section on `ledger.bundles.has(pkg.name)`, an EXACT string comparison against
|
|
681
|
+
* the plugin-manager inventory's package name while a deployment is free to
|
|
682
|
+
* mount the same code under a different Loader entry id. Two spellings had to
|
|
683
|
+
* be registered to cover it (issue #55), and a spelling nobody predicted
|
|
684
|
+
* rendered nothing at all — no section, no placeholder, no error.
|
|
685
|
+
*
|
|
686
|
+
* `settings.section` is a LIST slot keyed by an id **this plugin owns**. There
|
|
687
|
+
* is no inventory name to match, so the whole class of mismatch disappears,
|
|
688
|
+
* and the user finds the configuration where every other preference lives.
|
|
689
|
+
*
|
|
690
|
+
* ## The id is also the icon's address
|
|
691
|
+
*
|
|
692
|
+
* The shell renders `settings.section.icon` with `{ only: row.id }`, so the
|
|
693
|
+
* glyph must register under this same string. Both registrations come from one
|
|
694
|
+
* `inject` callback so the pairing is structural rather than a convention.
|
|
695
|
+
*
|
|
696
|
+
* Deliberately the bare, unnamespaced plugin name and NOT one of
|
|
697
|
+
* {@link WORKBUDDY_SETTINGS_NAMESPACE_CANDIDATES}: those are Loader entry ids
|
|
698
|
+
* the Host happens to serve, while this id is ours and must be stable across
|
|
699
|
+
* deployments.
|
|
700
|
+
*/
|
|
701
|
+
const WORKBUDDY_SETTINGS_SECTION_ID = "dsh-connect-workbuddy";
|
|
697
702
|
//#endregion
|
|
698
703
|
//#region src/client/account-selection.ts
|
|
699
704
|
/**
|
|
@@ -6176,7 +6181,7 @@ window.__ModuleLoader__.load({
|
|
|
6176
6181
|
.dsm-btn-outline:hover:not(:disabled){color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-dimmed);background:rgba(255,255,255,.04)}
|
|
6177
6182
|
.dsm-btn-primary{background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3)}
|
|
6178
6183
|
.dsm-btn-primary:hover:not(:disabled){opacity:.9}
|
|
6179
|
-
.dsm-workbuddy-usage{display:flex;flex-direction:column;gap:16px;margin:0;padding:16px 0 4px}
|
|
6184
|
+
.dsm-workbuddy-usage{display:flex;flex-direction:column;gap:16px;margin:0;padding:16px 0 4px;background:var(--dsw-alias-bg-layer-1,#17181b);border-radius:12px}
|
|
6180
6185
|
/* The provider bar: one CARD per region, side by side.
|
|
6181
6186
|
*
|
|
6182
6187
|
* COPIED FROM dsh-connect-trae, rule for rule, because an approximation of it
|
|
@@ -6243,12 +6248,22 @@ window.__ModuleLoader__.load({
|
|
|
6243
6248
|
* inactive panel out of the accessibility tree, which is exactly what
|
|
6244
6249
|
* role="tabpanel" wants — unlike display:none reached by a CSS class, it
|
|
6245
6250
|
* cannot be overridden by a later rule. */
|
|
6246
|
-
|
|
6251
|
+
/* No top margin: this row is a flex child of .dsm-workbuddy-usage, whose
|
|
6252
|
+
* column gap already separates it from the paragraph above. The margin stacked
|
|
6253
|
+
* ON TOP of that gap and doubled the distance (measured: 32px where the rhythm
|
|
6254
|
+
* is 16px).
|
|
6255
|
+
*
|
|
6256
|
+
* The bottom rule stays: it is the tabs' underline, not spacing. */
|
|
6257
|
+
.dsm-workbuddy-panels{display:flex;align-items:stretch;gap:2px;margin:0;border-bottom:1px solid var(--dsw-alias-border-l1,rgba(127,127,127,.24))}
|
|
6247
6258
|
.dsm-workbuddy-panel-tab{appearance:none;font:inherit;cursor:pointer;border:0;background:transparent;padding:7px 11px;margin-bottom:-1px;border-bottom:2px solid transparent;color:var(--dsw-alias-label-tertiary,#999);font-size:13px;font-weight:600;line-height:20px;white-space:nowrap;transition:color .15s,border-color .15s}
|
|
6248
6259
|
.dsm-workbuddy-panel-tab:hover:not(.dsm-workbuddy-panel-tab-active){color:var(--dsw-alias-label-primary,#e6e6e6)}
|
|
6249
6260
|
.dsm-workbuddy-panel-tab:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#5686fe);outline-offset:1px}
|
|
6250
6261
|
.dsm-workbuddy-panel-tab-active{color:var(--dsw-alias-label-primary,#e6e6e6);border-bottom-color:var(--dsw-alias-brand-primary,#5686fe)}
|
|
6251
|
-
|
|
6262
|
+
/* Same rule as the tab row above: the usage column's gap is the only spacing
|
|
6263
|
+
* between a tab row and the panel under it. This margin used to add 12px on top
|
|
6264
|
+
* of the 16px gap, and the panel's first block (the pool, with its own 16px top
|
|
6265
|
+
* padding) added a third layer. */
|
|
6266
|
+
.dsm-workbuddy-panel{margin:0}
|
|
6252
6267
|
/* DIAGNOSTICS: a two-column fact table rather than prose. Each row is one thing
|
|
6253
6268
|
* the card actually READ, so a bug report can quote a line instead of
|
|
6254
6269
|
* paraphrasing the UI. No control lives here on purpose — a diagnostics panel
|
|
@@ -6422,7 +6437,22 @@ window.__ModuleLoader__.load({
|
|
|
6422
6437
|
/* A plain header now: the section does not fold, so it is neither clickable nor
|
|
6423
6438
|
focusable, and the list-marker rules that hid the native <details> triangle are
|
|
6424
6439
|
gone with it. */
|
|
6425
|
-
.
|
|
6440
|
+
/* WRAPS, and the title column may shrink.
|
|
6441
|
+
*
|
|
6442
|
+
* In the Settings panel this header has ~538px for a title, a count line and
|
|
6443
|
+
* FOUR buttons (refresh + two availability sweeps + the speed sweep), whose
|
|
6444
|
+
* Chinese labels are long (一键测速启用模型). Without wrapping the flex line
|
|
6445
|
+
* never breaks, so the buttons keep their intrinsic width and the title column
|
|
6446
|
+
* is squeezed until 「已启用 3 个」 breaks mid-phrase — the header grows a second
|
|
6447
|
+
* line while the buttons stay put, which reads as a layout accident.
|
|
6448
|
+
*
|
|
6449
|
+
* row-gap is smaller than gap: a wrapped row is a continuation of the same
|
|
6450
|
+
* header, not a new section. */
|
|
6451
|
+
.dsm-workbuddy-models-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 12px;flex-wrap:wrap}
|
|
6452
|
+
/* The title column must be allowed to shrink below its content (min-width:0),
|
|
6453
|
+
or wrapping does not help — a flex item defaults to min-width:auto and would
|
|
6454
|
+
still push the buttons onto their own line at full width. */
|
|
6455
|
+
.dsm-workbuddy-models-head>div:first-child{min-width:0}
|
|
6426
6456
|
.dsm-workbuddy-models-title-row{display:flex;align-items:center;gap:6px;min-width:0}
|
|
6427
6457
|
.dsm-workbuddy-models-title{margin:0;color:var(--dsw-alias-label-primary,#e6e6e6);font-size:14px;font-weight:600;line-height:20px}
|
|
6428
6458
|
/* Unsaved-changes marker. It sits in the HEADER rather than beside the save
|
|
@@ -6440,7 +6470,19 @@ window.__ModuleLoader__.load({
|
|
|
6440
6470
|
colour: it has to stand out from the three lines around it WITHOUT reading as
|
|
6441
6471
|
an error banner, because the fact it states is normal product behaviour
|
|
6442
6472
|
rather than a failure. Weight is the only signal it needs. */
|
|
6443
|
-
|
|
6473
|
+
/* 这两句现在连在一起读:先说这两个 tab 是什么,再说它们的免费额度有限。
|
|
6474
|
+
* 所以两行之间不要段落间距(上一条 .dsm-workbuddy-tab-hint 的下边距已经给
|
|
6475
|
+
* 足了),否则会读成两段互不相干的话。 */
|
|
6476
|
+
.dsm-workbuddy-free-quota-warn{font-weight:600;margin-top:-10px}
|
|
6477
|
+
/* The line that explains the REGION pair, directly under it.
|
|
6478
|
+
*
|
|
6479
|
+
* It used to be a .dsm-workbuddy-models-summary inside the accounts panel,
|
|
6480
|
+
* borrowing a class named for the model list. It describes the two provider
|
|
6481
|
+
* cells above it, so it gets its own name and its own margin: the summary's
|
|
6482
|
+
* margin:2px 0 0 was tuned to sit under a section heading, and here the line
|
|
6483
|
+
* follows a row of boxed cells and needs more air, plus it precedes the section
|
|
6484
|
+
* tabs whose own top margin would otherwise crowd it. */
|
|
6485
|
+
.dsm-workbuddy-tab-hint{margin:10px 0 0;color:var(--dsw-alias-label-tertiary,#999);font-size:12px;line-height:18px}
|
|
6444
6486
|
/* Every model is laid out in full — NO inner scroll box.
|
|
6445
6487
|
*
|
|
6446
6488
|
* The previous rule capped this at max-height 520px with overflow-y auto, so a
|
|
@@ -6483,7 +6525,23 @@ window.__ModuleLoader__.load({
|
|
|
6483
6525
|
.dsm-workbuddy-model-off input{margin:0;accent-color:var(--dsw-alias-brand-primary,#5686fe)}
|
|
6484
6526
|
.dsm-workbuddy-model-off-blocked{cursor:not-allowed;opacity:.75}
|
|
6485
6527
|
.dsm-workbuddy-model-off-flag{margin-left:2px;padding:0 4px;border-radius:4px;background:var(--dsw-alias-label-caution-background,#4a3a1f);color:var(--dsw-alias-label-caution,#e8b34b);font-size:10px;line-height:14px;white-space:nowrap}
|
|
6486
|
-
.
|
|
6528
|
+
/* The name and its chips share one line, and WHICH ONE gives way matters.
|
|
6529
|
+
*
|
|
6530
|
+
* The chips are flex:none (a half-drawn pill reads as a rendering bug), so the
|
|
6531
|
+
* only shrinkable item is the name — and it is also the one thing a reader
|
|
6532
|
+
* needs. Left alone, a long name plus two or three chips squeezes the name down
|
|
6533
|
+
* to a few characters: 「GLM-5.」 with nothing after it, which is exactly the
|
|
6534
|
+
* report this fixes.
|
|
6535
|
+
*
|
|
6536
|
+
* So the chips wrap among themselves when the line is tight, and the name gets a
|
|
6537
|
+
* floor. It may still ellipsize — a name longer than the whole row cannot fit —
|
|
6538
|
+
* but it never collapses to a stub while a badge sits whole beside it. */
|
|
6539
|
+
.dsm-workbuddy-model-copy{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;min-width:0}
|
|
6540
|
+
.dsm-workbuddy-model-copy>.dsm-workbuddy-model-name{flex:1 1 auto;min-width:9em}
|
|
6541
|
+
/* Below the panel's own width the floor is too greedy: 9em plus two chips is
|
|
6542
|
+
wider than the line, and the NAME would force the wrap it is meant to avoid.
|
|
6543
|
+
Give it less and let the chips take the second line. */
|
|
6544
|
+
|
|
6487
6545
|
.dsm-workbuddy-model-name{display:inline-flex;align-items:baseline;gap:7px;color:var(--dsw-alias-label-primary,#e6e6e6);font-size:13px;font-weight:500;line-height:19px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
6488
6546
|
.dsm-workbuddy-model-name-rate{color:var(--dsw-alias-label-tertiary,#999);font-size:11px;font-weight:400;line-height:16px;flex:none}
|
|
6489
6547
|
/* The upstream's own promotion badge ("限时免费" / "Free now" / "Pro Only").
|
|
@@ -6562,7 +6620,11 @@ window.__ModuleLoader__.load({
|
|
|
6562
6620
|
.dsm-workbuddy-usage-cheer:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#5686fe);outline-offset:2px}
|
|
6563
6621
|
|
|
6564
6622
|
/* ---- Account pool ---- */
|
|
6565
|
-
|
|
6623
|
+
/* No top rule any more. It separated the 「免费模型并非无限量」 warning from the
|
|
6624
|
+
* pool; that warning moved up beside the region hint it belongs with, so the
|
|
6625
|
+
* line now had nothing above it to separate and only added a seam between the
|
|
6626
|
+
* section tabs and the first thing they contain. */
|
|
6627
|
+
.dsm-workbuddy-pool{display:flex;flex-direction:column;gap:12px;margin:0;padding:0 0 4px}
|
|
6566
6628
|
/* The block's heading: title on the left, serving-account badge on the right.
|
|
6567
6629
|
*
|
|
6568
6630
|
* It used to hold a THIRD child — the credit-readout switch, slotted in between
|
|
@@ -6593,7 +6655,7 @@ window.__ModuleLoader__.load({
|
|
|
6593
6655
|
* a sentence: it is read as a shape first, a word second. The border keeps the
|
|
6594
6656
|
* pill from bleeding into the row tint if a theme remaps success to something
|
|
6595
6657
|
* dark. */
|
|
6596
|
-
.dsm-workbuddy-pool-current-badge{margin-left:auto;padding:2px 10px;border-radius:999px;background:var(--dsw-alias-state-success-primary,#22c55e);border:1px solid rgba(34,197,94,.55);color:#fff;font-size:12px;font-weight:600;line-height:18px;white-space:nowrap}
|
|
6658
|
+
.dsm-workbuddy-pool-current-badge{margin-left:auto;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding:2px 10px;border-radius:999px;background:var(--dsw-alias-state-success-primary,#22c55e);border:1px solid rgba(34,197,94,.55);color:#fff;font-size:12px;font-weight:600;line-height:18px;white-space:nowrap}
|
|
6597
6659
|
/* Sits under the header block, before the batch buttons: account discovery is
|
|
6598
6660
|
the first step of using the pool, so it reads above the actions it enables. */
|
|
6599
6661
|
/* THE HEAD SLOT — one place that answers "who is serving?".
|
|
@@ -6628,7 +6690,24 @@ window.__ModuleLoader__.load({
|
|
|
6628
6690
|
.dsm-workbuddy-pool-ghost-remove:hover:not(:disabled){background:rgba(245,158,11,.2)}
|
|
6629
6691
|
.dsm-workbuddy-pool-ghost-remove:disabled{cursor:default;opacity:.5}
|
|
6630
6692
|
.dsm-workbuddy-pool-error{margin:0;font-size:12px;line-height:17px;color:var(--dsw-alias-state-error-primary,#ef4444);white-space:pre-line}
|
|
6631
|
-
|
|
6693
|
+
/* CONTAINMENT ROOT for the row breakpoints below.
|
|
6694
|
+
*
|
|
6695
|
+
* The card now renders in three places whose WIDTHS have nothing to do with the
|
|
6696
|
+
* window: the composer card, the full page (capped at 860px), and the Settings
|
|
6697
|
+
* panel's content column (~560px on a 1400px screen). Every @media breakpoint
|
|
6698
|
+
* in this file measures the VIEWPORT, so inside the Settings panel they never
|
|
6699
|
+
* fire — a 564px column got the five-column desktop table and each cell clipped.
|
|
6700
|
+
*
|
|
6701
|
+
* container-type: inline-size lets the breakpoints below measure the TABLE
|
|
6702
|
+
* instead, which is the width the rows actually have to fit into.
|
|
6703
|
+
*
|
|
6704
|
+
* Deliberately on the table and NOT on an ancestor: container-type makes the
|
|
6705
|
+
* element the containing block for position:fixed descendants, and the busy
|
|
6706
|
+
* veils and the device dialog are siblings of this table inside
|
|
6707
|
+
* .dsm-workbuddy-pool. Putting the containment here leaves them on the
|
|
6708
|
+
* viewport, which is where a full-screen overlay belongs. The table itself
|
|
6709
|
+
* contains only the header and member rows — no fixed-position descendants. */
|
|
6710
|
+
.dsm-workbuddy-pool-table{container-type:inline-size;border:1px solid var(--dsw-alias-border-l2,#3a3d45);border-radius:12px;overflow:hidden;background:var(--dsw-alias-bg-layer-2,#24262c)}
|
|
6632
6711
|
.dsm-workbuddy-pool-row{display:grid;grid-template-columns:1.6fr 1fr 1.3fr .9fr .8fr;gap:10px;align-items:center;padding:10px 14px;border-top:1px solid var(--dsw-alias-border-l1,#2c2d31);font-size:13px;color:var(--dsw-alias-label-secondary,#c6c9d0)}
|
|
6633
6712
|
/* No check-in column (the international region): the freed track goes to the actions. */
|
|
6634
6713
|
.dsm-workbuddy-pool-table:not(.dsm-workbuddy-pool-table-checkin) .dsm-workbuddy-pool-row{grid-template-columns:1.6fr 1fr 1.3fr 1.7fr}
|
|
@@ -6835,7 +6914,12 @@ window.__ModuleLoader__.load({
|
|
|
6835
6914
|
heading floated under the table with nothing marking the change of subject. */
|
|
6836
6915
|
.dsm-workbuddy-pool-settings-wrap{display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--dsw-alias-border-l2,#36373b);padding-top:14px}
|
|
6837
6916
|
.dsm-workbuddy-pool-dirty{font-size:12px;line-height:18px;font-weight:500;color:var(--dsw-alias-state-warn-primary,#f59e0b)}
|
|
6838
|
-
|
|
6917
|
+
/* Second containment root, for the settings rows. They are NOT inside
|
|
6918
|
+
* .dsm-workbuddy-pool-table (that is the member table only), so the table's
|
|
6919
|
+
* container query cannot reach them. This element holds just the stacked
|
|
6920
|
+
* setting rows — no position:fixed descendants, so containment here cannot move
|
|
6921
|
+
* an overlay's containing block. */
|
|
6922
|
+
.dsm-workbuddy-pool-settings{container-type:inline-size;display:flex;flex-direction:column;gap:1px;border:1px solid var(--dsw-alias-border-l2,#3a3d45);border-radius:12px;overflow:hidden;background:var(--dsw-alias-bg-layer-2,#24262c)}
|
|
6839
6923
|
/* THE MODE BAR — the page's master control, directly under the title.
|
|
6840
6924
|
*
|
|
6841
6925
|
* It reuses the .dsm-workbuddy-pool-settings class for the bordered, stacked
|
|
@@ -6954,6 +7038,52 @@ window.__ModuleLoader__.load({
|
|
|
6954
7038
|
/* This account's own test model (issue #61). Narrower than the section-level
|
|
6955
7039
|
picker so a long model name cannot push the two buttons out of the row. */
|
|
6956
7040
|
@media (max-width:760px){.dsm-workbuddy-pool-row{grid-template-columns:1fr 1fr;row-gap:6px}.dsm-workbuddy-pool-select{max-width:180px}}
|
|
7041
|
+
/* The settings rows (target model, probe size) are flex with a content column
|
|
7042
|
+
* that grows and a control that does not. In the Settings panel the control was
|
|
7043
|
+
* squeezed to a sliver: max-width:260px caps it but nothing gives it a floor,
|
|
7044
|
+
* and the copy beside it takes everything else. Stacking is the same move the
|
|
7045
|
+
* table makes at this width — one fact per line rather than two columns of
|
|
7046
|
+
* clipped text. */
|
|
7047
|
+
@container (max-width:620px){.dsm-workbuddy-pool-set{flex-direction:column;align-items:stretch;gap:8px}
|
|
7048
|
+
.dsm-workbuddy-pool-set-ctl{flex:1 1 auto;justify-content:flex-start}
|
|
7049
|
+
.dsm-workbuddy-pool-select{max-width:none;width:100%}}
|
|
7050
|
+
/* THE TABLE'S NARROW FORM, measured against the table rather than the window.
|
|
7051
|
+
*
|
|
7052
|
+
* Every breakpoint in this file up to here is a @media query, and those
|
|
7053
|
+
* measure the VIEWPORT. The same card now renders in the Settings panel's
|
|
7054
|
+
* content column (~564px on a 1400px screen), where a media query never fires:
|
|
7055
|
+
* a five-column table was laid into 564px and every cell clipped.
|
|
7056
|
+
*
|
|
7057
|
+
* ONE threshold, not two. An earlier revision had a 720px band that merely
|
|
7058
|
+
* dropped one track, on the theory that "slightly narrower" still wants a grid
|
|
7059
|
+
* — but the Settings column lands at ~564px, i.e. INSIDE that band, so the
|
|
7060
|
+
* reader got a 2x2 grid whose cells no longer lined up with their headers and
|
|
7061
|
+
* whose rows were twice as tall as the wide ones. A table has no "slightly
|
|
7062
|
+
* narrower" form worth having: either there is room for the columns or there
|
|
7063
|
+
* is not.
|
|
7064
|
+
*
|
|
7065
|
+
* Below the threshold each row becomes a STACKED CARD: the same five facts, in
|
|
7066
|
+
* the same order they read left to right when wide, now top to bottom. That is
|
|
7067
|
+
* what keeps a narrow row legible instead of merely fitting. */
|
|
7068
|
+
@container (max-width:700px){
|
|
7069
|
+
/* THREE LINES, not five. A plain flex-direction:column stacked every cell
|
|
7070
|
+
onto its own line, which doubled the row height and read as a form rather
|
|
7071
|
+
than an account. Wrapping is what keeps the row a CARD: the account and the
|
|
7072
|
+
actions own a full line each (they are the identify-it and act-on-it ends),
|
|
7073
|
+
while the three facts in between share the middle line and wrap among
|
|
7074
|
+
themselves only when they genuinely do not fit. */
|
|
7075
|
+
.dsm-workbuddy-pool-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:10px 12px}
|
|
7076
|
+
.dsm-workbuddy-pool-table:not(.dsm-workbuddy-pool-table-checkin) .dsm-workbuddy-pool-row{display:flex;flex-wrap:wrap;align-items:baseline}
|
|
7077
|
+
/* The column headers describe tracks that no longer exist. */
|
|
7078
|
+
.dsm-workbuddy-pool-row-head{display:none}
|
|
7079
|
+
.dsm-workbuddy-pool-account{flex:1 1 100%;align-items:center}
|
|
7080
|
+
/* The three middle facts, laid out as one line of the same sentence. */
|
|
7081
|
+
.dsm-workbuddy-pool-credits{flex:0 1 auto;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
|
|
7082
|
+
.dsm-workbuddy-pool-probe{flex:1 1 auto;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
|
|
7083
|
+
.dsm-workbuddy-pool-checkin{flex:none}
|
|
7084
|
+
.dsm-workbuddy-pool-row-actions{flex:1 1 100%;justify-content:flex-start;padding-top:4px}
|
|
7085
|
+
}
|
|
7086
|
+
|
|
6957
7087
|
/* ISSUE #198, the same breakpoint the pool row already uses. On a phone the model
|
|
6958
7088
|
row's budget group takes the WHOLE line and left-aligns: right-justified, a
|
|
6959
7089
|
wrapped two-tier group reads as a stray fragment under the buttons, and the tier
|
|
@@ -7065,7 +7195,13 @@ window.__ModuleLoader__.load({
|
|
|
7065
7195
|
@keyframes dsm-workbuddy-veil-dash{0%{stroke-dasharray:12 150;stroke-dashoffset:0}50%{stroke-dasharray:24 150;stroke-dashoffset:-6}to{stroke-dasharray:12 150;stroke-dashoffset:0}}
|
|
7066
7196
|
@media (prefers-reduced-motion: reduce){.dsm-workbuddy-veil-spinner{animation:none}.dsm-workbuddy-veil-spinner-arc{animation:none;stroke-dasharray:18 150;stroke-dashoffset:-3}}
|
|
7067
7197
|
.dsm-workbuddy-page{box-sizing:border-box;height:100%;display:flex;flex-direction:column;align-items:center;gap:20px;padding:28px clamp(24px,4vw,48px) 48px;overflow:auto;color:var(--dsw-alias-label-primary,#e6e6e6)}
|
|
7068
|
-
|
|
7198
|
+
/* 1120px, not 860: the page is the WIDE layout — that is the whole reason the
|
|
7199
|
+
* sidebar row and the readout's button exist — so capping it at 860 left a third
|
|
7200
|
+
* of a 1440px window empty while the table inside still had five columns to
|
|
7201
|
+
* place. The cap still matters: past ~1120 a five-column row of short figures
|
|
7202
|
+
* starts to read as scattered, and a line of prose runs longer than the eye
|
|
7203
|
+
* likes to track. */
|
|
7204
|
+
.dsm-workbuddy-page>*{width:100%;max-width:1120px}
|
|
7069
7205
|
.dsm-workbuddy-page-head{display:flex;flex-direction:column;gap:6px}
|
|
7070
7206
|
.dsm-workbuddy-page-back{appearance:none;font:inherit;cursor:pointer;border:1px solid var(--dsw-alias-border-l2,#36373b);background:var(--dsw-alias-bg-layer-1,#17181b);color:var(--dsw-alias-label-secondary,#c7c7c7);border-radius:8px;padding:5px 12px;display:inline-flex;align-items:center;gap:6px;align-self:flex-start;font-size:13px;line-height:20px}
|
|
7071
7207
|
.dsm-workbuddy-page-back:hover{color:var(--dsw-alias-label-primary,#e6e6e6);border-color:var(--dsw-alias-label-dimmed,#777)}
|
|
@@ -7074,7 +7210,38 @@ window.__ModuleLoader__.load({
|
|
|
7074
7210
|
.dsm-workbuddy-page-title{margin:0;font-size:20px;font-weight:600;line-height:1.4}
|
|
7075
7211
|
.dsm-workbuddy-page-desc{margin:0;font-size:13px;line-height:1.5;color:var(--dsw-alias-label-tertiary,#999)}
|
|
7076
7212
|
.dsm-workbuddy-page-body .dsm-workbuddy-usage{padding:20px 20px 8px;border:1px solid var(--dsw-alias-border-l2,#36373b);background:var(--dsw-alias-bg-layer-3,#202126);border-radius:12px}
|
|
7077
|
-
.
|
|
7213
|
+
/* ---- 设置面板里的一节(settings.section,5.19.0)------------------------
|
|
7214
|
+
面板内容列本来就窄(800px 面板减 188px 导航),而且它自己滚动。所以这一页
|
|
7215
|
+
不去抢整页的高度与居中:height:100% 会在列里撑出第二根滚动条,860px 的
|
|
7216
|
+
居中上限又会让内容缩在左边。改成从上往下排、宽度交给列,只有内边距是本插件
|
|
7217
|
+
自己的;卡片边框也去掉——它现在是页面内容,不再是别人列表里的一行。 */
|
|
7218
|
+
.dsm-workbuddy-settings{height:auto;min-height:0;padding:0;gap:14px;overflow:visible}
|
|
7219
|
+
|
|
7220
|
+
.dsm-workbuddy-settings>*{max-width:none}
|
|
7221
|
+
/* 顶部那块自报家门:图标与标题同排,简介独占一行。面板已有一层标题栏,这里
|
|
7222
|
+
不再叠一个大标题,只把"这是什么"说清楚。 */
|
|
7223
|
+
.dsm-workbuddy-settings .dsm-workbuddy-settings-head{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:2px;align-items:center}
|
|
7224
|
+
.dsm-workbuddy-settings .dsm-workbuddy-page-icon{width:28px;height:28px;border-radius:6px;margin-top:0;grid-row:1}
|
|
7225
|
+
.dsm-workbuddy-settings .dsm-workbuddy-page-title{font-size:15px;line-height:22px;grid-row:1;min-width:0}
|
|
7226
|
+
.dsm-workbuddy-settings .dsm-workbuddy-page-desc{grid-column:1/-1;font-size:12px;line-height:18px}
|
|
7227
|
+
/* 内容块不再是一张浮在页面上的卡:去掉边框与底色,内边距改成横向对齐列边。
|
|
7228
|
+
*
|
|
7229
|
+
* 但那是「外壳那一列是实底色」时的结论。issue #209:换上个性化壁纸后,外壳的列
|
|
7230
|
+
* 是半透明的,这一页自己又没有任何底色,于是壁纸整片透过内容区——标题、说明段落、
|
|
7231
|
+
* 标签栏、账号池 全部直接压在壁纸上。这台机器上其余内容块各自有实底
|
|
7232
|
+
* (表格、设置组),唯独它们之间的留白与正文没有,所以只有「什么都没有」的地方在
|
|
7233
|
+
* 透。修复是给内容区自己一层底,取外壳的 layer 色;实底主题上与原来看不出差别。 */
|
|
7234
|
+
/* 页头那两行(标题、一句简介)在内容区外面,壁纸下同样没有承托。
|
|
7235
|
+
*
|
|
7236
|
+
* 补一块底而不是把它并进内容区:面板自己已经有一层标题栏,页头与正文之间要
|
|
7237
|
+
* 留出间隔,两块底拼成一片会让页头看起来属于正文。取同一个 layer 色,实底主题
|
|
7238
|
+
* 上与原来看不出差别。
|
|
7239
|
+
*
|
|
7240
|
+
* 这一条同时作用于整页(侧边栏入口那个宽页面),它同样没有底色。 */
|
|
7241
|
+
.dsm-workbuddy-settings .dsm-workbuddy-settings-head,
|
|
7242
|
+
.dsm-workbuddy-page .dsm-workbuddy-page-head{background:var(--dsw-alias-bg-layer-1,#17181b);border-radius:12px;padding:10px 12px}
|
|
7243
|
+
/* 这一页的内容区不能有内边距,否则底色会缩进一截,与页头对不齐。 */
|
|
7244
|
+
.dsm-workbuddy-settings .dsm-workbuddy-page-body .dsm-workbuddy-usage{padding:0;border:0;border-radius:0;background:var(--dsw-alias-bg-layer-1,#17181b)}.dsm-workbuddy-panel-icon{display:block;border-radius:4px;flex:none}
|
|
7078
7245
|
/* ---- 设备头档位与逐账号参数弹窗 ------------------------------------------
|
|
7079
7246
|
档位那一行贴着账号表:它同时决定"这台机器对外声称自己是谁"和"每行的齿轮能
|
|
7080
7247
|
不能用",埋进「更多设置」会让齿轮看起来时好时坏。
|
|
@@ -7327,6 +7494,15 @@ window.__ModuleLoader__.load({
|
|
|
7327
7494
|
.dsm-workbuddy-composer-panel-refresh-icon-spin{animation:none;opacity:.55}
|
|
7328
7495
|
}
|
|
7329
7496
|
|
|
7497
|
+
/* The header's right-hand control: the link to this plugin's settings.
|
|
7498
|
+
A wrapper rather than an auto margin on the button, because the button is NOT
|
|
7499
|
+
always rendered (a host with no route renders none) and a wrapper that is
|
|
7500
|
+
always present keeps the header layout identical either way. */
|
|
7501
|
+
.dsm-workbuddy-composer-panel-actions{flex:none;margin-left:auto;display:flex;align-items:center}
|
|
7502
|
+
/* The header holds ONE control (refresh) now that the settings page lives in
|
|
7503
|
+
the Settings panel: the gear pill that navigated to the Plugins page retired
|
|
7504
|
+
with the page it pointed at. margin-left:auto on the wrapper keeps the
|
|
7505
|
+
control pinned right regardless of how many buttons the actions row holds. */
|
|
7330
7506
|
/* The header's right-hand control: the link to this plugin's settings.
|
|
7331
7507
|
A wrapper rather than an auto margin on the button, because the button is NOT
|
|
7332
7508
|
always rendered (a host with no route renders none) and a wrapper that is
|
|
@@ -8104,8 +8280,9 @@ window.__ModuleLoader__.load({
|
|
|
8104
8280
|
function WorkBuddyCardBody({ t, settingsScope, view, surface, backToConversation }) {
|
|
8105
8281
|
if (t === void 0) throw new Error("WorkBuddy plugin card requires its translation function");
|
|
8106
8282
|
const pageSurface = surface === "page";
|
|
8283
|
+
const settingsSurface = surface === "settings";
|
|
8107
8284
|
const [cardOpen, setCardOpen] = (0, react.useState)(view === "page");
|
|
8108
|
-
const open = pageSurface || cardOpen;
|
|
8285
|
+
const open = pageSurface || settingsSurface || cardOpen;
|
|
8109
8286
|
/** The region whose tab is on screen; each tab is its own provider stack. */
|
|
8110
8287
|
const [activeRegion, setActiveRegion] = (0, react.useState)("cn");
|
|
8111
8288
|
/**
|
|
@@ -10201,10 +10378,19 @@ window.__ModuleLoader__.load({
|
|
|
10201
10378
|
})
|
|
10202
10379
|
]
|
|
10203
10380
|
});
|
|
10204
|
-
|
|
10205
|
-
|
|
10381
|
+
/**
|
|
10382
|
+
* The page header: the sidebar panel's own page, and the Settings section.
|
|
10383
|
+
*
|
|
10384
|
+
* Both are "a page about WorkBuddy" rather than a row in someone else's list,
|
|
10385
|
+
* so both say what this is in one line. They differ in exactly one control:
|
|
10386
|
+
* the sidebar page needs a way back to the conversation, while the Settings
|
|
10387
|
+
* section is inside a dialog the shell closes for you — a back arrow there
|
|
10388
|
+
* would point at a place the reader did not come from.
|
|
10389
|
+
*/
|
|
10390
|
+
const pageHead = pageSurface || settingsSurface ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10391
|
+
className: settingsSurface ? "dsm-workbuddy-page-head dsm-workbuddy-settings-head" : "dsm-workbuddy-page-head",
|
|
10206
10392
|
children: [
|
|
10207
|
-
backToConversation !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
10393
|
+
pageSurface && backToConversation !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
10208
10394
|
type: "button",
|
|
10209
10395
|
className: "dsm-workbuddy-page-back",
|
|
10210
10396
|
onClick: backToConversation,
|
|
@@ -10282,6 +10468,14 @@ window.__ModuleLoader__.load({
|
|
|
10282
10468
|
}, region);
|
|
10283
10469
|
})
|
|
10284
10470
|
}),
|
|
10471
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10472
|
+
className: "dsm-workbuddy-models-summary dsm-workbuddy-tab-hint",
|
|
10473
|
+
children: t("row.tabHint")
|
|
10474
|
+
}),
|
|
10475
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10476
|
+
className: "dsm-workbuddy-models-summary dsm-workbuddy-free-quota-warn",
|
|
10477
|
+
children: t("row.tabFreeQuotaWarn")
|
|
10478
|
+
}),
|
|
10285
10479
|
signedIn ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10286
10480
|
className: "dsm-workbuddy-panels",
|
|
10287
10481
|
role: "tablist",
|
|
@@ -10356,14 +10550,6 @@ window.__ModuleLoader__.load({
|
|
|
10356
10550
|
"aria-labelledby": "dsm-workbuddy-tab-accounts",
|
|
10357
10551
|
hidden: signedIn && panel !== "accounts",
|
|
10358
10552
|
children: [
|
|
10359
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10360
|
-
className: "dsm-workbuddy-models-summary",
|
|
10361
|
-
children: t("row.tabHint")
|
|
10362
|
-
}),
|
|
10363
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10364
|
-
className: "dsm-workbuddy-models-summary dsm-workbuddy-free-quota-warn",
|
|
10365
|
-
children: t("row.tabFreeQuotaWarn")
|
|
10366
|
-
}),
|
|
10367
10553
|
!activeRegionOn ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10368
10554
|
className: "dsm-workbuddy-tab-off-notice",
|
|
10369
10555
|
children: t("row.tabOffNotice")
|
|
@@ -10949,8 +11135,8 @@ window.__ModuleLoader__.load({
|
|
|
10949
11135
|
]
|
|
10950
11136
|
})
|
|
10951
11137
|
});
|
|
10952
|
-
if (pageSurface) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10953
|
-
className: "dsm-workbuddy-page",
|
|
11138
|
+
if (pageSurface || settingsSurface) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11139
|
+
className: settingsSurface ? "dsm-workbuddy-page dsm-workbuddy-settings" : "dsm-workbuddy-page",
|
|
10954
11140
|
children: [pageHead, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
10955
11141
|
className: "dsm-workbuddy-page-body",
|
|
10956
11142
|
children: cardBody
|
|
@@ -11377,12 +11563,11 @@ window.__ModuleLoader__.load({
|
|
|
11377
11563
|
const [testError, setTestError] = (0, react.useState)(void 0);
|
|
11378
11564
|
const [failed, setFailed] = (0, react.useState)(false);
|
|
11379
11565
|
/**
|
|
11380
|
-
* The
|
|
11566
|
+
* The full-page button could not reach the page on this host.
|
|
11381
11567
|
*
|
|
11382
11568
|
* Its own flag, not `failed`, because the two render DIFFERENT sentences: this
|
|
11383
|
-
* one says the host offers no route to the
|
|
11384
|
-
*
|
|
11385
|
-
* the other.
|
|
11569
|
+
* one says the host offers no route to the page, which is not the same claim as
|
|
11570
|
+
* "the credits read failed", and sharing a flag would print one over the other.
|
|
11386
11571
|
*/
|
|
11387
11572
|
const [settingsFailed, setSettingsFailed] = (0, react.useState)(false);
|
|
11388
11573
|
const [lastRefresh, setLastRefresh] = (0, react.useState)(void 0);
|
|
@@ -11682,7 +11867,7 @@ window.__ModuleLoader__.load({
|
|
|
11682
11867
|
t
|
|
11683
11868
|
]);
|
|
11684
11869
|
/**
|
|
11685
|
-
* The header's
|
|
11870
|
+
* The header's page control: open this plugin's full page, then close.
|
|
11686
11871
|
*
|
|
11687
11872
|
* CLOSING IS PART OF THE JOB. The panel is portaled to `document.body` and
|
|
11688
11873
|
* floats over the composer; navigating the centre column does not remove it, so
|
|
@@ -11870,6 +12055,16 @@ window.__ModuleLoader__.load({
|
|
|
11870
12055
|
})]
|
|
11871
12056
|
})]
|
|
11872
12057
|
}),
|
|
12058
|
+
settingsFailed ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
12059
|
+
className: "dsm-workbuddy-composer-panel-error",
|
|
12060
|
+
role: "status",
|
|
12061
|
+
children: t("composer.openSettingsFailed")
|
|
12062
|
+
}) : null,
|
|
12063
|
+
testError === void 0 ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
12064
|
+
className: "dsm-workbuddy-composer-panel-error",
|
|
12065
|
+
role: "status",
|
|
12066
|
+
children: testError
|
|
12067
|
+
}),
|
|
11873
12068
|
signedOut ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
11874
12069
|
className: "dsm-workbuddy-composer-panel-empty",
|
|
11875
12070
|
children: t("composer.signedOut")
|
|
@@ -11978,12 +12173,7 @@ window.__ModuleLoader__.load({
|
|
|
11978
12173
|
className: "dsm-workbuddy-composer-panel-error",
|
|
11979
12174
|
role: "status",
|
|
11980
12175
|
children: testError
|
|
11981
|
-
})
|
|
11982
|
-
settingsFailed ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
11983
|
-
className: "dsm-workbuddy-composer-panel-error",
|
|
11984
|
-
role: "status",
|
|
11985
|
-
children: t("composer.openSettingsFailed")
|
|
11986
|
-
}) : null
|
|
12176
|
+
})
|
|
11987
12177
|
]
|
|
11988
12178
|
}), document.body)
|
|
11989
12179
|
]
|
|
@@ -13267,8 +13457,8 @@ window.__ModuleLoader__.load({
|
|
|
13267
13457
|
"composer.noAccounts": "No account in this region",
|
|
13268
13458
|
"composer.signedOut": "Not signed in",
|
|
13269
13459
|
"composer.openSettings": "Settings",
|
|
13270
|
-
"composer.openSettingsHint": "Open this plugin's
|
|
13271
|
-
"composer.openSettingsFailed": "This host offers no route to the plugin
|
|
13460
|
+
"composer.openSettingsHint": "Open this plugin's full page (accounts, models, switches)",
|
|
13461
|
+
"composer.openSettingsFailed": "This host offers no route to the plugin page",
|
|
13272
13462
|
"composer.refresh": "Refresh",
|
|
13273
13463
|
"composer.refreshing": "Refreshing…",
|
|
13274
13464
|
"composer.refreshHint": "Refresh every account status in this region — probes each account once, one at a time (spends a small amount of credits, takes up to a minute)",
|
|
@@ -13791,8 +13981,8 @@ window.__ModuleLoader__.load({
|
|
|
13791
13981
|
"composer.noAccounts": "该区域暂无账号",
|
|
13792
13982
|
"composer.signedOut": "未登录",
|
|
13793
13983
|
"composer.openSettings": "设置",
|
|
13794
|
-
"composer.openSettingsHint": "
|
|
13795
|
-
"composer.openSettingsFailed": "
|
|
13984
|
+
"composer.openSettingsHint": "打开本插件的完整页面(账号、模型、各项开关)",
|
|
13985
|
+
"composer.openSettingsFailed": "这台宿主没有通往插件页面的入口",
|
|
13796
13986
|
"composer.refresh": "刷新",
|
|
13797
13987
|
"composer.refreshing": "正在刷新…",
|
|
13798
13988
|
"composer.refreshHint": "刷新本区所有账号的状态——逐个探测每个账号(会消耗少量积分,最长约一分钟)",
|
|
@@ -13822,89 +14012,134 @@ window.__ModuleLoader__.load({
|
|
|
13822
14012
|
"cliLive.aria": "有一个 CodeBuddy 回合正在跑:{detail}"
|
|
13823
14013
|
};
|
|
13824
14014
|
//#endregion
|
|
13825
|
-
//#region src/client/settings-
|
|
13826
|
-
/**
|
|
13827
|
-
*
|
|
13828
|
-
*
|
|
13829
|
-
* ## Why this is a module and not three lines inside `apply`
|
|
13830
|
-
*
|
|
13831
|
-
* The entry (`src/client/index.tsx`) imports browser-only DSH packages that the
|
|
13832
|
-
* Node test environment cannot load, so anything worth asserting on has to live
|
|
13833
|
-
* outside it — the same seam `panel-switch.ts` provides for the opt-in switch and
|
|
13834
|
-
* `ComposerCreditsGate.tsx` provides for the readout's own visibility rule. This
|
|
13835
|
-
* module holds the whole decision, so the spec exercises the REAL chain instead
|
|
13836
|
-
* of a mirror of it.
|
|
13837
|
-
*
|
|
13838
|
-
* ## Why two routes
|
|
13839
|
-
*
|
|
13840
|
-
* On this host line a plugin's settings are not a "page in Settings" at all:
|
|
13841
|
-
* the Plugins page owns them, and each bundle's page (`plugins.bundle.config` /
|
|
13842
|
-
* `plugins.row.config`) IS the configuration surface — Settings keeps only the
|
|
13843
|
-
* read-only built-in inventory. So "open the plugin's settings" means "open the
|
|
13844
|
-
* Plugins page on this bundle", and the supported way to ask for that is the
|
|
13845
|
-
* `pluginNavigation` service the Plugins page provides:
|
|
13846
|
-
* `openBundle(packageName)` selects that page without changing the Session.
|
|
13847
|
-
*
|
|
13848
|
-
* `pluginNavigation` is provided by `@deepseek-ai/dsh-client-ui-plugin-manager`,
|
|
13849
|
-
* NOT by the shell. A profile can be composed without it, and plugin load order
|
|
13850
|
-
* is not something a contributor may assume — so the probe happens at CALL time
|
|
13851
|
-
* rather than at registration time. Probing once in `apply` would capture
|
|
13852
|
-
* `undefined` on a page whose Plugins bundle simply applied after ours, and the
|
|
13853
|
-
* button would be dead for the rest of the session with nothing to re-evaluate
|
|
13854
|
-
* it.
|
|
14015
|
+
//#region src/client/settings-jump.ts
|
|
14016
|
+
/**
|
|
14017
|
+
* Best-effort jump to this plugin's **Settings section** (设置 → WorkBuddy).
|
|
13855
14018
|
*
|
|
13856
|
-
*
|
|
13857
|
-
*
|
|
13858
|
-
*
|
|
13859
|
-
* `
|
|
13860
|
-
*
|
|
13861
|
-
*
|
|
13862
|
-
*
|
|
13863
|
-
*
|
|
13864
|
-
*
|
|
13865
|
-
*
|
|
13866
|
-
*
|
|
13867
|
-
*
|
|
13868
|
-
*
|
|
13869
|
-
*
|
|
13870
|
-
*
|
|
13871
|
-
*
|
|
13872
|
-
|
|
13873
|
-
|
|
13874
|
-
*
|
|
13875
|
-
*
|
|
13876
|
-
*
|
|
13877
|
-
*
|
|
13878
|
-
*
|
|
13879
|
-
* the
|
|
13880
|
-
*
|
|
13881
|
-
*
|
|
13882
|
-
*
|
|
13883
|
-
|
|
13884
|
-
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
13888
|
-
*
|
|
13889
|
-
*
|
|
13890
|
-
*
|
|
13891
|
-
*
|
|
13892
|
-
*
|
|
13893
|
-
*
|
|
13894
|
-
*
|
|
13895
|
-
|
|
13896
|
-
|
|
13897
|
-
|
|
13898
|
-
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
|
|
13903
|
-
|
|
13904
|
-
|
|
14019
|
+
* ## Why a DOM walk rather than a service call
|
|
14020
|
+
*
|
|
14021
|
+
* The host gives a third-party plugin NO public way to open one of its
|
|
14022
|
+
* `settings.section`s. The shell keeps the selected section in its own store
|
|
14023
|
+
* (`ui-settings-general`'s `createSettingsShellStore().activeId`), and the only
|
|
14024
|
+
* `openSection(id)` it hands out goes to `settings.onboarding` registrants —
|
|
14025
|
+
* that is the first-run guidance seat, not a configuration entry. Nothing else
|
|
14026
|
+
* in `@deepseek-ai/dsh-client-ui-settings`' client contract exposes a
|
|
14027
|
+
* `openSection` / `selectedSection` service.
|
|
14028
|
+
*
|
|
14029
|
+
* This is not a WorkBuddy-specific finding: `dsh-connect-qoder`, `dsh-context`
|
|
14030
|
+
* and `dsh-better-sidebar` all document the same gap and all drive the real
|
|
14031
|
+
* chrome instead.
|
|
14032
|
+
*
|
|
14033
|
+
* ## What "driving the chrome" means here
|
|
14034
|
+
*
|
|
14035
|
+
* 1. click the shell's settings trigger (`aria-haspopup="dialog"` +
|
|
14036
|
+
* `aria-expanded`) — unless the panel is already open, in which case
|
|
14037
|
+
* clicking it would CLOSE it and the jump would turn into a disappearing
|
|
14038
|
+
* act;
|
|
14039
|
+
* 2. wait for the panel to mount (it renders on demand into `body`);
|
|
14040
|
+
* 3. find this plugin's nav row by its LABEL and click it.
|
|
14041
|
+
*
|
|
14042
|
+
* ## Why the label and not the id
|
|
14043
|
+
*
|
|
14044
|
+
* The shell renders each nav row's `row.label` — an already-localized string —
|
|
14045
|
+
* and writes no `data-section-id` or similar stable anchor; `aria-current` only
|
|
14046
|
+
* appears on the row that is already selected. The label comes from this
|
|
14047
|
+
* plugin's own `section.label` (`t('nav.panel')`), so both languages live in
|
|
14048
|
+
* this repository and "the one we found" cannot drift from "the one we
|
|
14049
|
+
* registered".
|
|
14050
|
+
*
|
|
14051
|
+
* ## Why it never throws
|
|
14052
|
+
*
|
|
14053
|
+
* Every step is called from a RENDER path (a click handler in the credits
|
|
14054
|
+
* popover). A throw here would take out the whole readout rather than one
|
|
14055
|
+
* button, so each stage swallows its own failure and the whole jump degrades to
|
|
14056
|
+
* a silent no-op when the shell has a different shape (an older host, a hidden
|
|
14057
|
+
* sidebar, a language we did not ship).
|
|
14058
|
+
*
|
|
14059
|
+
* @module dsh-connect-workbuddy/client/settings-jump
|
|
14060
|
+
*/
|
|
14061
|
+
/**
|
|
14062
|
+
* The settings panel container.
|
|
14063
|
+
*
|
|
14064
|
+
* `data-shortcut-modal="settings"` is the shell's OWN attribute — its shortcut
|
|
14065
|
+
* router keys off it to decide whether the open modal is the settings one — so
|
|
14066
|
+
* it is far more stable than any class name, which is a CSS-module hash.
|
|
14067
|
+
*/
|
|
14068
|
+
const SETTINGS_PANEL_SELECTOR = "[data-shortcut-modal=\"settings\"]";
|
|
14069
|
+
/** The sidebar's settings trigger: dialog semantics plus an expanded state. */
|
|
14070
|
+
const TRIGGER_SELECTOR = "button[aria-haspopup=\"dialog\"][aria-expanded]";
|
|
14071
|
+
/**
|
|
14072
|
+
* Budget for "panel mounted + nav row rendered".
|
|
14073
|
+
*
|
|
14074
|
+
* The panel mounts SYNCHRONOUSLY on the click, but the nav rows' labels wait for
|
|
14075
|
+
* a locale snapshot, so a same-frame query is often one tick too early. Five
|
|
14076
|
+
* attempts over ~300ms covers one layout pass while staying under the threshold
|
|
14077
|
+
* where a user starts to think the click did nothing.
|
|
14078
|
+
*/
|
|
14079
|
+
const RETRY_DELAYS_MS = [
|
|
14080
|
+
0,
|
|
14081
|
+
60,
|
|
14082
|
+
70,
|
|
14083
|
+
80,
|
|
14084
|
+
90
|
|
14085
|
+
];
|
|
14086
|
+
function defaultSchedule(run, ms) {
|
|
14087
|
+
try {
|
|
14088
|
+
window.setTimeout(run, ms);
|
|
14089
|
+
} catch {
|
|
14090
|
+
run();
|
|
14091
|
+
}
|
|
14092
|
+
}
|
|
14093
|
+
function buttonsIn(scope) {
|
|
14094
|
+
return Array.from(scope.querySelectorAll("button"));
|
|
14095
|
+
}
|
|
14096
|
+
/** Find the nav-row button whose label is this plugin's. */
|
|
14097
|
+
function findSectionRow(scope, label) {
|
|
14098
|
+
const want = label.trim();
|
|
14099
|
+
if (want === "") return void 0;
|
|
14100
|
+
return buttonsIn(scope).find((button) => (button.textContent ?? "").trim() === want);
|
|
14101
|
+
}
|
|
14102
|
+
/**
|
|
14103
|
+
* Open the settings panel and select this plugin's section.
|
|
14104
|
+
*
|
|
14105
|
+
* @returns whether the trigger was driven at all (`false` = the panel is not on
|
|
14106
|
+
* this host, so nothing was attempted and `onGiveUp` already ran).
|
|
14107
|
+
*/
|
|
14108
|
+
function openWorkBuddySettingsSection(options) {
|
|
14109
|
+
const { doc = document, label } = options;
|
|
14110
|
+
const schedule = options.schedule ?? defaultSchedule;
|
|
14111
|
+
try {
|
|
14112
|
+
if (doc.querySelector(SETTINGS_PANEL_SELECTOR) === null) {
|
|
14113
|
+
const collapsed = Array.from(doc.querySelectorAll(TRIGGER_SELECTOR)).find((button) => button.getAttribute("aria-expanded") !== "true");
|
|
14114
|
+
if (collapsed === void 0) {
|
|
14115
|
+
try {
|
|
14116
|
+
options.onGiveUp?.();
|
|
14117
|
+
} catch {}
|
|
14118
|
+
return false;
|
|
14119
|
+
}
|
|
14120
|
+
collapsed.click();
|
|
14121
|
+
}
|
|
14122
|
+
let clicked = false;
|
|
14123
|
+
let remaining = RETRY_DELAYS_MS.length;
|
|
14124
|
+
for (const delay of RETRY_DELAYS_MS) schedule(() => {
|
|
14125
|
+
if (clicked) return;
|
|
14126
|
+
remaining -= 1;
|
|
14127
|
+
try {
|
|
14128
|
+
const row = findSectionRow(doc.querySelector(SETTINGS_PANEL_SELECTOR) ?? doc, label());
|
|
14129
|
+
if (row !== void 0) {
|
|
14130
|
+
clicked = true;
|
|
14131
|
+
row.click();
|
|
14132
|
+
return;
|
|
14133
|
+
}
|
|
14134
|
+
} catch {}
|
|
14135
|
+
if (remaining === 0) try {
|
|
14136
|
+
options.onGiveUp?.();
|
|
14137
|
+
} catch {}
|
|
14138
|
+
}, delay);
|
|
13905
14139
|
return true;
|
|
13906
|
-
} catch {
|
|
13907
|
-
|
|
14140
|
+
} catch {
|
|
14141
|
+
return false;
|
|
14142
|
+
}
|
|
13908
14143
|
}
|
|
13909
14144
|
//#endregion
|
|
13910
14145
|
//#region src/client/index.tsx
|
|
@@ -13955,39 +14190,116 @@ window.__ModuleLoader__.load({
|
|
|
13955
14190
|
const t = ctx.locale.bind(namespace);
|
|
13956
14191
|
const softGet = (name) => ctx.get(name);
|
|
13957
14192
|
/**
|
|
13958
|
-
*
|
|
13959
|
-
* asks for it.
|
|
14193
|
+
* The credits popover's header button: open 设置 → WorkBuddy.
|
|
13960
14194
|
*
|
|
13961
|
-
*
|
|
13962
|
-
*
|
|
13963
|
-
*
|
|
13964
|
-
*
|
|
14195
|
+
* ALWAYS A FUNCTION, never `undefined`. It drives the shell's real chrome
|
|
14196
|
+
* (see `settings-jump.ts`) rather than asking a host service, so it has a
|
|
14197
|
+
* definite value from the moment `apply` runs. That matters because the
|
|
14198
|
+
* readout only renders the button when this is present, and the first
|
|
14199
|
+
* `registerAllSlots()` happens before most of `apply` has finished — a
|
|
14200
|
+
* route captured from `ctx.get('layout')` at that moment is `undefined` on
|
|
14201
|
+
* a host whose layout plugin applies later, and the renderer caches
|
|
14202
|
+
* `inject()` results by entry identity, so nothing would ever correct it.
|
|
14203
|
+
*
|
|
14204
|
+
* The `onGiveUp` fallback asks the plugin manager for this bundle's page,
|
|
14205
|
+
* so an unrecognisable shell still lands somewhere useful.
|
|
13965
14206
|
*/
|
|
13966
|
-
const
|
|
14207
|
+
const openSettingsSection = () => openWorkBuddySettingsSection({
|
|
14208
|
+
label: () => t("nav.panel"),
|
|
14209
|
+
onGiveUp: () => {
|
|
14210
|
+
const navigation = softGet("pluginNavigation");
|
|
14211
|
+
if (navigation !== void 0 && typeof navigation.openBundle === "function") try {
|
|
14212
|
+
navigation.openBundle("dsh-connect-workbuddy");
|
|
14213
|
+
} catch {}
|
|
14214
|
+
}
|
|
14215
|
+
});
|
|
13967
14216
|
let settingsScope;
|
|
13968
14217
|
const forms = softGet("configForms");
|
|
13969
14218
|
/**
|
|
13970
|
-
* Register
|
|
14219
|
+
* Register this plugin's page — and its nav glyph — in the Settings panel.
|
|
14220
|
+
*
|
|
14221
|
+
* ## Why one callback rather than two
|
|
14222
|
+
*
|
|
14223
|
+
* `settings.section` drives the nav row; `settings.section.icon` is rendered
|
|
14224
|
+
* by the shell as `renderSlot('settings.section.icon', …, { only: row.id })`,
|
|
14225
|
+
* so the glyph's cell is only meaningful while the page's id exists.
|
|
14226
|
+
* Registering both from the same `inject` callback makes the pairing
|
|
14227
|
+
* structural: the page's declaration is what makes the glyph addressable at
|
|
14228
|
+
* all, and Cordis disposes both with this fiber.
|
|
13971
14229
|
*
|
|
13972
|
-
*
|
|
13973
|
-
*
|
|
13974
|
-
* `
|
|
13975
|
-
*
|
|
13976
|
-
*
|
|
14230
|
+
* ## Why there is NO capability probe
|
|
14231
|
+
*
|
|
14232
|
+
* `ctx.slots.inject(name, …)` already IS the probe. It waits for the
|
|
14233
|
+
* declaration and runs its callback once the slot exists; on a host that
|
|
14234
|
+
* never declares `settings.section` it does nothing at all — no throw, no
|
|
14235
|
+
* queued-forever registration. A probe built on anything else (a version
|
|
14236
|
+
* string, an accessor the service may not expose) turns "not supported
|
|
14237
|
+
* here" into "never registers anywhere", which is how a page nobody can see
|
|
14238
|
+
* ships with no error at all. Let the host answer.
|
|
14239
|
+
*
|
|
14240
|
+
* `WorkBuddyCard` is registered with `surface: 'settings'`: the shell owns
|
|
14241
|
+
* the panel chrome (title, close), so the card drops its own collapse and
|
|
14242
|
+
* back affordances and keeps only its content.
|
|
13977
14243
|
*/
|
|
13978
|
-
const
|
|
14244
|
+
const registerSettingsSection = () => {
|
|
13979
14245
|
try {
|
|
13980
|
-
return ctx.slots.inject(
|
|
13981
|
-
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
|
|
14246
|
+
return ctx.slots.inject("settings.section", () => {
|
|
14247
|
+
const disposers = [];
|
|
14248
|
+
const injected = () => settingsScope === void 0 ? {
|
|
14249
|
+
t,
|
|
14250
|
+
surface: "settings"
|
|
14251
|
+
} : {
|
|
13985
14252
|
t,
|
|
13986
|
-
settingsScope
|
|
14253
|
+
settingsScope,
|
|
14254
|
+
surface: "settings"
|
|
14255
|
+
};
|
|
14256
|
+
disposers.push(ctx.slots.register({
|
|
14257
|
+
name: "settings.section",
|
|
14258
|
+
id: WORKBUDDY_SETTINGS_SECTION_ID,
|
|
14259
|
+
order: 35,
|
|
14260
|
+
label: () => t("nav.panel"),
|
|
14261
|
+
locale: namespace,
|
|
14262
|
+
inject: injected
|
|
14263
|
+
}, WorkBuddyCard));
|
|
14264
|
+
try {
|
|
14265
|
+
const iconInject = ctx.slots.inject("settings.section.icon", () => {
|
|
14266
|
+
const iconDisposer = ctx.slots.register({
|
|
14267
|
+
name: "settings.section.icon",
|
|
14268
|
+
id: WORKBUDDY_SETTINGS_SECTION_ID,
|
|
14269
|
+
locale: namespace
|
|
14270
|
+
}, (iconProps) => {
|
|
14271
|
+
const edge = typeof iconProps?.size === "number" ? iconProps.size : 16;
|
|
14272
|
+
return (0, react.createElement)("img", {
|
|
14273
|
+
src: WORKBUDDY_PLUGIN_ICON,
|
|
14274
|
+
alt: "",
|
|
14275
|
+
width: edge,
|
|
14276
|
+
height: edge,
|
|
14277
|
+
className: "dsm-workbuddy-nav-icon",
|
|
14278
|
+
style: {
|
|
14279
|
+
width: `${edge}px`,
|
|
14280
|
+
height: `${edge}px`,
|
|
14281
|
+
borderRadius: "4px",
|
|
14282
|
+
display: "block",
|
|
14283
|
+
objectFit: "contain",
|
|
14284
|
+
opacity: iconProps?.active === false ? .75 : 1
|
|
14285
|
+
}
|
|
14286
|
+
});
|
|
14287
|
+
});
|
|
14288
|
+
disposers.push(iconDisposer);
|
|
14289
|
+
return iconDisposer;
|
|
14290
|
+
});
|
|
14291
|
+
if (typeof iconInject === "function") disposers.push(iconInject);
|
|
14292
|
+
} catch (error) {
|
|
14293
|
+
console.error("[dsh-connect-workbuddy] settings nav icon failed to register (page unaffected):", error);
|
|
13987
14294
|
}
|
|
13988
|
-
|
|
14295
|
+
return () => {
|
|
14296
|
+
for (const dispose of disposers) try {
|
|
14297
|
+
dispose();
|
|
14298
|
+
} catch {}
|
|
14299
|
+
};
|
|
14300
|
+
});
|
|
13989
14301
|
} catch (error) {
|
|
13990
|
-
console.error(
|
|
14302
|
+
console.error("[dsh-connect-workbuddy] settings section failed to register (host provider unaffected):", error);
|
|
13991
14303
|
return;
|
|
13992
14304
|
}
|
|
13993
14305
|
};
|
|
@@ -14027,16 +14339,12 @@ window.__ModuleLoader__.load({
|
|
|
14027
14339
|
id: "dsh-connect-workbuddy-composer-credits",
|
|
14028
14340
|
order: 4,
|
|
14029
14341
|
locale: namespace,
|
|
14030
|
-
inject: () =>
|
|
14031
|
-
t,
|
|
14032
|
-
position: "composer",
|
|
14033
|
-
onOpenSettings
|
|
14034
|
-
} : {
|
|
14342
|
+
inject: () => ({
|
|
14035
14343
|
t,
|
|
14036
14344
|
position: "composer",
|
|
14037
|
-
settingsScope,
|
|
14038
|
-
onOpenSettings
|
|
14039
|
-
}
|
|
14345
|
+
...settingsScope === void 0 ? {} : { settingsScope },
|
|
14346
|
+
onOpenSettings: openSettingsSection
|
|
14347
|
+
})
|
|
14040
14348
|
}, ComposerCreditsGate));
|
|
14041
14349
|
} catch (error) {
|
|
14042
14350
|
console.error("[dsh-connect-workbuddy] composer credits slot failed to register (host provider unaffected):", error);
|
|
@@ -14132,26 +14440,31 @@ window.__ModuleLoader__.load({
|
|
|
14132
14440
|
* affordance instead of blocking the whole plugin (the same degradation the
|
|
14133
14441
|
* card already promises for a missing settings form).
|
|
14134
14442
|
*/
|
|
14135
|
-
|
|
14136
|
-
|
|
14137
|
-
|
|
14138
|
-
|
|
14139
|
-
|
|
14140
|
-
|
|
14141
|
-
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14149
|
-
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14443
|
+
/**
|
|
14444
|
+
* The `main` key this plugin's full page is registered under.
|
|
14445
|
+
*
|
|
14446
|
+
* Also the id the composer readout asks `layout.selectPanel` for, so the two
|
|
14447
|
+
* cannot drift: a rename here that missed `openFullPage` below would leave a
|
|
14448
|
+
* button that throws "main panel is not registered".
|
|
14449
|
+
*/
|
|
14450
|
+
const PANEL_ID = "dsh-connect-workbuddy";
|
|
14451
|
+
/** Hand the centre column back to the conversation. */
|
|
14452
|
+
const backToConversation = () => {
|
|
14453
|
+
const layout = softGet("layout");
|
|
14454
|
+
if (layout !== void 0 && typeof layout.selectPanel === "function") layout.selectPanel(null);
|
|
14455
|
+
};
|
|
14456
|
+
/**
|
|
14457
|
+
* The full page: a `main` panel keyed by {@link PANEL_ID}.
|
|
14458
|
+
*
|
|
14459
|
+
* Registered ALWAYS, independently of the sidebar row. They used to share one
|
|
14460
|
+
* lifetime, which made the page reachable only while the optional nav row was
|
|
14461
|
+
* switched on — and the nav row is a global seat, off by default, that most
|
|
14462
|
+
* users never turn on. The page is what the composer readout's button opens,
|
|
14463
|
+
* so tying the two together meant that button could not exist.
|
|
14464
|
+
*/
|
|
14465
|
+
const registerMainPage = () => {
|
|
14153
14466
|
try {
|
|
14154
|
-
|
|
14467
|
+
return ctx.slots.inject("main", () => ctx.slots.register({
|
|
14155
14468
|
name: "main",
|
|
14156
14469
|
key: PANEL_ID,
|
|
14157
14470
|
locale: namespace,
|
|
@@ -14165,9 +14478,32 @@ window.__ModuleLoader__.load({
|
|
|
14165
14478
|
surface: "page",
|
|
14166
14479
|
backToConversation
|
|
14167
14480
|
}
|
|
14168
|
-
}, WorkBuddyCard))
|
|
14481
|
+
}, WorkBuddyCard));
|
|
14169
14482
|
} catch (error) {
|
|
14170
|
-
console.error("[dsh-connect-workbuddy]
|
|
14483
|
+
console.error("[dsh-connect-workbuddy] full page failed to register (host provider unaffected):", error);
|
|
14484
|
+
return;
|
|
14485
|
+
}
|
|
14486
|
+
};
|
|
14487
|
+
/**
|
|
14488
|
+
* The OPTIONAL sidebar nav row that points at {@link registerMainPage}'s page.
|
|
14489
|
+
*
|
|
14490
|
+
* Separate from the page for the reason above: `sidebar.panellist` builds its
|
|
14491
|
+
* rows from ENTRY METADATA (`usePanels`), so this is the only half that has to
|
|
14492
|
+
* come and go with the switch. Registering the row is what makes the page
|
|
14493
|
+
* reachable from the sidebar; the page itself exists either way.
|
|
14494
|
+
*/
|
|
14495
|
+
const registerPanelRow = () => {
|
|
14496
|
+
const disposers = [];
|
|
14497
|
+
try {
|
|
14498
|
+
disposers.push(ctx.slots.inject("sidebar.panellist", () => ctx.slots.register({
|
|
14499
|
+
name: "sidebar.panellist",
|
|
14500
|
+
id: PANEL_ID,
|
|
14501
|
+
order: 2,
|
|
14502
|
+
label: () => t("nav.panel"),
|
|
14503
|
+
locale: namespace
|
|
14504
|
+
}, WorkBuddyPanelIcon)));
|
|
14505
|
+
} catch (error) {
|
|
14506
|
+
console.error("[dsh-connect-workbuddy] sidebar panel row failed to register (host provider unaffected):", error);
|
|
14171
14507
|
}
|
|
14172
14508
|
return disposers;
|
|
14173
14509
|
};
|
|
@@ -14199,7 +14535,7 @@ window.__ModuleLoader__.load({
|
|
|
14199
14535
|
} catch {}
|
|
14200
14536
|
panelDisposers = [];
|
|
14201
14537
|
if (!sidebarPanelWanted()) return;
|
|
14202
|
-
panelDisposers =
|
|
14538
|
+
panelDisposers = registerPanelRow();
|
|
14203
14539
|
};
|
|
14204
14540
|
/**
|
|
14205
14541
|
* The SAME readout in the ambient dock below the composer card (issue #62).
|
|
@@ -14227,16 +14563,12 @@ window.__ModuleLoader__.load({
|
|
|
14227
14563
|
id: "dsh-connect-workbuddy-stats-credits",
|
|
14228
14564
|
order: 10,
|
|
14229
14565
|
locale: namespace,
|
|
14230
|
-
inject: () =>
|
|
14231
|
-
t,
|
|
14232
|
-
position: "stats",
|
|
14233
|
-
onOpenSettings
|
|
14234
|
-
} : {
|
|
14566
|
+
inject: () => ({
|
|
14235
14567
|
t,
|
|
14236
14568
|
position: "stats",
|
|
14237
|
-
settingsScope,
|
|
14238
|
-
onOpenSettings
|
|
14239
|
-
}
|
|
14569
|
+
...settingsScope === void 0 ? {} : { settingsScope },
|
|
14570
|
+
onOpenSettings: openSettingsSection
|
|
14571
|
+
})
|
|
14240
14572
|
}, ComposerCreditsGate));
|
|
14241
14573
|
} catch (error) {
|
|
14242
14574
|
console.error("[dsh-connect-workbuddy] stats credits slot failed to register (host provider unaffected):", error);
|
|
@@ -14331,21 +14663,20 @@ window.__ModuleLoader__.load({
|
|
|
14331
14663
|
* late-arriving namespace has to produce fresh registrations rather than a
|
|
14332
14664
|
* mutated closure.
|
|
14333
14665
|
*
|
|
14334
|
-
* The
|
|
14335
|
-
*
|
|
14336
|
-
*
|
|
14337
|
-
*
|
|
14338
|
-
*
|
|
14339
|
-
* reports nothing at all.
|
|
14666
|
+
* The configuration page is `settings.section` — ONE registration under an
|
|
14667
|
+
* id this plugin owns, so there is no inventory name to match and no
|
|
14668
|
+
* spelling to get wrong (see {@link WORKBUDDY_SETTINGS_SECTION_ID}). The
|
|
14669
|
+
* former `plugins.bundle.config` / `plugins.row.config` pair is GONE with
|
|
14670
|
+
* 5.19.0: the same configuration must not have two editing entries.
|
|
14340
14671
|
*/
|
|
14341
14672
|
const registerAllSlots = () => [
|
|
14342
|
-
|
|
14343
|
-
...WORKBUDDY_CARD_KEYS.map((key) => registerCard("plugins.row.config", `${key}#${key}`)),
|
|
14673
|
+
registerSettingsSection(),
|
|
14344
14674
|
registerComposerCredits(),
|
|
14345
14675
|
registerStatsCredits(),
|
|
14346
14676
|
registerCliLive(),
|
|
14347
14677
|
registerQuotaNotice(),
|
|
14348
|
-
registerModelLabel()
|
|
14678
|
+
registerModelLabel(),
|
|
14679
|
+
registerMainPage()
|
|
14349
14680
|
].filter((disposer) => disposer !== void 0);
|
|
14350
14681
|
/**
|
|
14351
14682
|
* Disposers of the slots registered for the CURRENT binding.
|
|
@@ -14377,7 +14708,7 @@ window.__ModuleLoader__.load({
|
|
|
14377
14708
|
liveDisposers = [];
|
|
14378
14709
|
liveDisposers = registerAllSlots();
|
|
14379
14710
|
try {
|
|
14380
|
-
console.info(`[dsh-connect-workbuddy] registered ${String(liveDisposers.length)} slots (settings form: ${settingsScope === void 0 ? "none —
|
|
14711
|
+
console.info(`[dsh-connect-workbuddy] registered ${String(liveDisposers.length)} slots (settings form: ${settingsScope === void 0 ? "none — page is read-only" : "bound"}, sidebar panel: ${sidebarPanelWanted() ? "on" : "off"})`);
|
|
14381
14712
|
} catch {}
|
|
14382
14713
|
syncPanelRegistration();
|
|
14383
14714
|
};
|