@fish-under-sea/dsh-client-ui-task-board-fish 2.2.2 → 2.3.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.
Files changed (104) hide show
  1. package/README.en.md +4 -4
  2. package/package.json +5 -4
  3. package/README.i18n.yaml +0 -6
  4. package/README.md +0 -31
  5. package/README.zh.md +0 -31
  6. package/lib/client.js +0 -15861
  7. package/lib/client.js.map +0 -1
  8. package/lib/index.js +0 -12653
  9. package/lib/types/client/CardDefaultPresetField.d.ts +0 -35
  10. package/lib/types/client/PluginSettingsCard.d.ts +0 -255
  11. package/lib/types/client/RangeBubble.d.ts +0 -46
  12. package/lib/types/client/SegmentGroup.d.ts +0 -28
  13. package/lib/types/client/TaskBoardSettingsCard.d.ts +0 -155
  14. package/lib/types/client/apply-guard.d.ts +0 -25
  15. package/lib/types/client/board/AttachmentField.d.ts +0 -70
  16. package/lib/types/client/board/ClampedMarkdown.d.ts +0 -3
  17. package/lib/types/client/board/ConfirmDialog.d.ts +0 -15
  18. package/lib/types/client/board/EditTaskModal.d.ts +0 -17
  19. package/lib/types/client/board/ExecutionLog.d.ts +0 -24
  20. package/lib/types/client/board/LinkSubtaskModal.d.ts +0 -14
  21. package/lib/types/client/board/NewTaskModal.d.ts +0 -26
  22. package/lib/types/client/board/ReasoningEffortField.d.ts +0 -25
  23. package/lib/types/client/board/TagManagerModal.d.ts +0 -26
  24. package/lib/types/client/board/TaskBoard.d.ts +0 -26
  25. package/lib/types/client/board/TaskCard.d.ts +0 -36
  26. package/lib/types/client/board/TaskDetail.d.ts +0 -9
  27. package/lib/types/client/board/TaskForm.d.ts +0 -76
  28. package/lib/types/client/board/VerificationReport.d.ts +0 -10
  29. package/lib/types/client/board/card-view.d.ts +0 -113
  30. package/lib/types/client/board/icons.d.ts +0 -32
  31. package/lib/types/client/board/model-options.d.ts +0 -87
  32. package/lib/types/client/board/overlay.d.ts +0 -69
  33. package/lib/types/client/board/parse-model-pref.d.ts +0 -4
  34. package/lib/types/client/board/preset-label.d.ts +0 -43
  35. package/lib/types/client/board/preset-roster.d.ts +0 -45
  36. package/lib/types/client/board/source-group.d.ts +0 -27
  37. package/lib/types/client/board/status-key.d.ts +0 -19
  38. package/lib/types/client/board/task-markdown.d.ts +0 -19
  39. package/lib/types/client/body-mutations.d.ts +0 -45
  40. package/lib/types/client/host-api.d.ts +0 -88
  41. package/lib/types/client/index.d.ts +0 -128
  42. package/lib/types/client/locales.d.ts +0 -521
  43. package/lib/types/client/main-session.d.ts +0 -32
  44. package/lib/types/client/native-panel.d.ts +0 -48
  45. package/lib/types/client/pending-verify.d.ts +0 -47
  46. package/lib/types/client/plugin-card-seat.d.ts +0 -110
  47. package/lib/types/client/schedule-presets.d.ts +0 -10
  48. package/lib/types/client/schedule-zone.d.ts +0 -97
  49. package/lib/types/client/seats.d.ts +0 -18
  50. package/lib/types/client/service.d.ts +0 -35
  51. package/lib/types/client/settings-entry-form.d.ts +0 -49
  52. package/lib/types/client/settings-form.d.ts +0 -235
  53. package/lib/types/core/attachment.d.ts +0 -132
  54. package/lib/types/core/card-defaults.d.ts +0 -78
  55. package/lib/types/core/controller.d.ts +0 -422
  56. package/lib/types/core/degraded-reason.d.ts +0 -46
  57. package/lib/types/core/execution-summary.d.ts +0 -52
  58. package/lib/types/core/extension.d.ts +0 -399
  59. package/lib/types/core/freeze-snapshot.d.ts +0 -71
  60. package/lib/types/core/handover.d.ts +0 -70
  61. package/lib/types/core/issue-form.d.ts +0 -16
  62. package/lib/types/core/launch-width.d.ts +0 -31
  63. package/lib/types/core/package-name.d.ts +0 -9
  64. package/lib/types/core/poll-cadence.d.ts +0 -31
  65. package/lib/types/core/reasoning-effort.d.ts +0 -57
  66. package/lib/types/core/schedule.d.ts +0 -124
  67. package/lib/types/core/session-reuse.d.ts +0 -30
  68. package/lib/types/core/spend-budget.d.ts +0 -28
  69. package/lib/types/core/store.d.ts +0 -64
  70. package/lib/types/core/subtask.d.ts +0 -204
  71. package/lib/types/core/tasks.d.ts +0 -685
  72. package/lib/types/core/use-cases/task-archive.d.ts +0 -20
  73. package/lib/types/core/use-cases/task-create.d.ts +0 -32
  74. package/lib/types/core/use-cases/task-delete.d.ts +0 -27
  75. package/lib/types/core/use-cases/task-parent.d.ts +0 -21
  76. package/lib/types/core/use-cases/task-schedule.d.ts +0 -96
  77. package/lib/types/core/use-cases/task-tag.d.ts +0 -84
  78. package/lib/types/core/use-cases/task-update.d.ts +0 -77
  79. package/lib/types/core/verification-budget.d.ts +0 -52
  80. package/lib/types/core/verification.d.ts +0 -753
  81. package/lib/types/core/wire-projection.d.ts +0 -35
  82. package/lib/types/core/workspace-target.d.ts +0 -61
  83. package/lib/types/dsh-home.d.ts +0 -16
  84. package/lib/types/host/agent-tools.d.ts +0 -27
  85. package/lib/types/host/attachments.d.ts +0 -250
  86. package/lib/types/host/extension-registry.d.ts +0 -151
  87. package/lib/types/host/launch-admission.d.ts +0 -71
  88. package/lib/types/host/llm-dispatch.d.ts +0 -63
  89. package/lib/types/host/verification-gate.d.ts +0 -95
  90. package/lib/types/host/verification-runner.d.ts +0 -139
  91. package/lib/types/host/workspace-evidence.d.ts +0 -53
  92. package/lib/types/host-ai.d.ts +0 -51
  93. package/lib/types/host-ledger.d.ts +0 -452
  94. package/lib/types/host-routes.d.ts +0 -99
  95. package/lib/types/host-runner.d.ts +0 -401
  96. package/lib/types/host-service.d.ts +0 -517
  97. package/lib/types/host-spend.d.ts +0 -52
  98. package/lib/types/http.d.ts +0 -59
  99. package/lib/types/index.d.ts +0 -441
  100. package/lib/types/loopback.d.ts +0 -64
  101. package/lib/types/mount-once.d.ts +0 -55
  102. package/lib/types/power-inhibitor.d.ts +0 -73
  103. package/lib/types/protocol.d.ts +0 -253
  104. package/lib/types/tool-surface.d.ts +0 -72
@@ -1,45 +0,0 @@
1
- /**
2
- * The agent-preset roster the execution-target pickers read: one read of the
3
- * generated api-remotes face, and its normalization into the option rows the
4
- * board controller and the settings card's new-card-defaults topic both
5
- * consume.
6
- *
7
- * The roster is a runtime fact of the deployment, not ledger state. The
8
- * namespace mounts with the official api-remotes assembly, so the read itself
9
- * is wired through a scoped inject at the call site (see src/client/index.ts);
10
- * this module owns only the shape both consumers agree on, so neither has to
11
- * know how the wire face answers.
12
- */
13
- import type { ClientRemote } from '@deepseek-ai/dsh-api-remotes/client';
14
- import type { ExecutionPresetOption } from '../../core/controller.ts';
15
- /** The generated Remote namespace the mode pickers read their roster from. */
16
- export type PresetRemote = ClientRemote['agentPresets'];
17
- /** One agent-preset row the wire face answers with. */
18
- export interface PresetRosterRow {
19
- id: string;
20
- name?: string;
21
- description?: string;
22
- /** Why this preset cannot compose a session; absent when it can. */
23
- broken?: string;
24
- isDefault: boolean;
25
- }
26
- /**
27
- * Read the agent-preset roster of one deployment. The caller passes the
28
- * namespace resolved inside its scoped inject, so a host that serves no such
29
- * namespace never reaches here; a host that serves it answers `ok: false`
30
- * instead, which leaves the caller's options untouched.
31
- * @param remote - the `remote.agentPresets` namespace.
32
- * @returns the roster, or a failed read the caller ignores.
33
- */
34
- export declare function readPresetRoster(remote: PresetRemote): Promise<{
35
- ok: boolean;
36
- presets: readonly PresetRosterRow[];
37
- }>;
38
- /**
39
- * Normalize one roster into the picker rows the UI consumes. A preset that
40
- * cannot compose a session keeps its `broken` reason: the pickers show it and
41
- * disable it, so a missing preset never looks like a missing roster.
42
- * @param presets - the roster rows.
43
- * @returns the picker options.
44
- */
45
- export declare function presetOptionsFromRoster(presets: readonly PresetRosterRow[]): ExecutionPresetOption[];
@@ -1,27 +0,0 @@
1
- /**
2
- * Source grouping and fold preferences for the board view. Providers contribute
3
- * opaque groups through the client contract; this module owns only ordering,
4
- * local fallback, and browser persistence, never provider metadata semantics.
5
- */
6
- import type { TaskBoardGroupingSelector, TaskBoardSourceGroup } from '../../core/extension.ts';
7
- import type { TaskRecord, TaskStatus } from '../../core/tasks.ts';
8
- /** Reserved group for cards no provider claimed. */
9
- export declare const LOCAL_SOURCE_GROUP_ID = "local";
10
- /** Browser storage key for explicit source-fold overrides. */
11
- export declare const SOURCE_GROUP_FOLDS_KEY = "dsh.taskBoard.sourceGroupFolds.v1";
12
- export type SourceGroupView = TaskStatus | 'archived';
13
- export type SourceGroupFolds = Readonly<Record<string, boolean>>;
14
- export interface SourceGroupBucket extends TaskBoardSourceGroup {
15
- items: TaskRecord[];
16
- local: boolean;
17
- }
18
- /** Group cards in their incoming order, then sort provider groups by full label. */
19
- export declare function groupTasksBySource(tasks: readonly TaskRecord[], selectors: readonly TaskBoardGroupingSelector[]): SourceGroupBucket[];
20
- /** Compound key keeps a fold choice scoped to one column/view and one source. */
21
- export declare function sourceGroupFoldKey(view: SourceGroupView, sourceId: string): string;
22
- /** Read explicit overrides; malformed or unavailable storage falls back to defaults. */
23
- export declare function readSourceGroupFolds(storage: Pick<Storage, 'getItem'> | undefined): SourceGroupFolds;
24
- /** Persist overrides; a storage failure only loses the preference. */
25
- export declare function writeSourceGroupFolds(storage: Pick<Storage, 'setItem'> | undefined, folds: SourceGroupFolds): void;
26
- /** Search always reveals matches; otherwise an override beats the column default. */
27
- export declare function isSourceGroupFolded(folds: SourceGroupFolds, view: SourceGroupView, sourceId: string, searchActive: boolean): boolean;
@@ -1,19 +0,0 @@
1
- import type { TaskStatus } from '../../core/tasks.ts';
2
- import { type ExecutionVerification, type VerificationPhase } from '../../core/verification.ts';
3
- import type { TaskBoardKey } from '../locales.ts';
4
- /** Task status → locale key (board column titles and the detail badge). */
5
- export declare const STATUS_KEY: Record<TaskStatus, TaskBoardKey>;
6
- /**
7
- * Acceptance phase to the label the running column shows: executing,
8
- * verifying, or fixing a failed acceptance. The card keeps one running label;
9
- * this decides which one.
10
- */
11
- export declare const VERIFICATION_PHASE_KEY: Record<VerificationPhase, TaskBoardKey>;
12
- /**
13
- * The acceptance label for one open execution, or undefined when acceptance
14
- * does not govern it (the switch was off at start, the run never became a goal
15
- * run, or a teammate is covered by its Lead).
16
- * @param verification - the execution's acceptance state.
17
- * @returns the locale key to render, or undefined for the historical label.
18
- */
19
- export declare function verificationRunningKey(verification: ExecutionVerification | undefined): TaskBoardKey | undefined;
@@ -1,19 +0,0 @@
1
- /** Readable summary without changing the task source or creating DOM HTML. */
2
- export declare function markdownToPlainText(source: string): string;
3
- /**
4
- * Card excerpt: the plain text a reader can tell cards apart by.
5
- *
6
- * Issue-form bodies open with identical boilerplate (a duplicate-search
7
- * checkbox, a plugin field, an issue-type field), so the plain-text prefix of
8
- * every synced card read the same. The excerpt drops section headings, lists
9
- * made only of checkboxes, raw HTML, rules and empty-field placeholders; when a
10
- * summary-like section exists its body wins. A description that loses
11
- * everything to those rules falls back to its full plain text, so no card goes
12
- * blank. The stored description is never changed.
13
- * @param source - the task description (Markdown).
14
- */
15
- export declare function markdownExcerpt(source: string): string;
16
- /** Markdown rendered as React nodes: raw HTML and automatic image loads are disabled. */
17
- export declare function TaskMarkdown({ source }: {
18
- source: string;
19
- }): import("react").JSX.Element;
@@ -1,45 +0,0 @@
1
- /**
2
- * One `document.body` MutationObserver per page, shared by every family
3
- * plugin bundle.
4
- *
5
- * Family plugins that inject at the DOM level must notice when the shell
6
- * re-renders around their injected node: the aggregate shell's column shims
7
- * and any plugin surface still extending the shell from outside the official
8
- * slot seats. Each consumer used to install its OWN `MutationObserver` on
9
- * `document.body` with
10
- * `{ childList: true, subtree: true }`, so a page carrying N family plugins
11
- * paid N native observers and N callback invocations for EVERY mutation batch
12
- * the app produced — chat token streaming alone produces many per second, and
13
- * the count grows with the number of installed plugins.
14
- *
15
- * This module keeps exactly ONE body observer per page. The registry lives on
16
- * `globalThis` under a `Symbol.for` key, so the per-package generated copies
17
- * of this file (scripts/sync-shared.mjs) and separately bundled plugins all
18
- * reach the same hub at runtime instead of one hub per module instance.
19
- * Record subscribers receive the mutations accumulated since the last flush.
20
- * Consumers that only re-check their DOM use subscribeBodyInvalidations:
21
- * when all subscribers use that path, the hub retains no mutation records
22
- * (or detached subtrees) while a background page's animation frames pause.
23
- * Both paths run at most once per frame. The last subscriber disconnects the
24
- * observer, cancels the pending frame and releases its records.
25
- *
26
- * Failure policy: without a DOM or `MutationObserver` the subscription is a
27
- * no-op disposer (the same silence the per-consumer observers had), and when
28
- * `requestAnimationFrame` is unavailable the flush runs synchronously so a
29
- * subscriber is never silently dropped. A throwing subscriber cannot stop the
30
- * others.
31
- */
32
- /**
33
- * Subscribe to a coalesced DOM re-check without retaining mutation records.
34
- * The marked wrapper also works with an older hub, which delivers records
35
- * that it simply ignores until a page reload picks up the updated hub.
36
- */
37
- export declare function subscribeBodyInvalidations(subscriber: () => void): () => void;
38
- /**
39
- * Subscribe to body-level childList mutations.
40
- * @param subscriber - called at most once per animation frame with the records
41
- * collected since the previous flush; must be safe to run repeatedly.
42
- * @returns the disposer removing this subscriber (and the observer when it was
43
- * the last one).
44
- */
45
- export declare function subscribeBodyMutations(subscriber: (records: MutationRecord[]) => void): () => void;
@@ -1,88 +0,0 @@
1
- import { type TaskAttachment, type TaskAttachmentKind } from '../core/attachment.ts';
2
- import type { TaskRecord } from '../core/tasks.ts';
3
- import { type TaskBoardAction, type TaskBoardEventPayload, type TaskBoardParseDraft, type TaskBoardParseRequest, type TaskBoardSnapshot } from '../protocol.ts';
4
- /**
5
- * Failure classes of the Host API, in the language the panel renders
6
- * (issue #1528). The Host is the only part that knows whether a task-board
7
- * route exists at all, so a raw fetch/parse error must never reach the user:
8
- * "Unexpected token 'o', \"not found\" is not valid JSON" is what a missing
9
- * Host half looks like today.
10
- */
11
- export type HostApiFailure =
12
- /** The board's own routes are not registered and nothing explains why. */
13
- 'not-mounted'
14
- /** Another live DSH process owns the ledger, so this instance registered no board routes (#1730). */
15
- | 'ledger-locked'
16
- /** This row degraded during start for some other reason the family health route reports (#1730). */
17
- | 'degraded' | 'unauthorized' | 'forbidden' | 'locked' | 'rejected' | 'timeout' | 'unreachable' | 'unexpected';
18
- /** Transport failure carrying a stable class next to its user-facing message. */
19
- export declare class HostApiError extends Error {
20
- readonly failure: HostApiFailure;
21
- readonly status?: number | undefined;
22
- constructor(failure: HostApiFailure, message: string, status?: number | undefined);
23
- }
24
- /**
25
- * Name the real reason this board's routes are missing (issue #1730).
26
- *
27
- * The core webserver answers an unmounted route with a bare 404, which cannot
28
- * distinguish "this deployment never loaded the plugin" from "this row
29
- * degraded during start" — a second DSH process holding `ledger-v2.lock` is
30
- * the case that matters, because the panel's advice ("restart the service")
31
- * is then false: the lock belongs to the other process, and restarting cannot
32
- * win it. The family health route knows the difference, so the 404 is
33
- * disambiguated there before anything is shown.
34
- * @param fallback - copy for the plain "routes are not there" failure, which
35
- * is route-specific (the board's state route and the AI-parse route phrase
36
- * their own absence); it is also what is shown when the ledger names nothing.
37
- * @param fetchImpl - fetch implementation (injected for tests).
38
- * @returns the HostApiError to throw for a missing board route.
39
- */
40
- export declare function missingRouteFailure(fallback?: string, fetchImpl?: typeof fetch): Promise<HostApiError>;
41
- export interface TaskBoardHostTransport {
42
- bootstrap(legacy: readonly TaskRecord[]): Promise<TaskBoardSnapshot>;
43
- state(): Promise<TaskBoardSnapshot>;
44
- action(action: TaskBoardAction, initiator?: string): Promise<TaskBoardSnapshot>;
45
- subscribe(listener: (event?: TaskBoardEventPayload) => void): () => void;
46
- /** One-shot model parse of pasted text (issue #1540). */
47
- parseDraft(request: TaskBoardParseRequest, signal?: AbortSignal): Promise<TaskBoardParseDraft>;
48
- /**
49
- * Upload one file or image into the Host's attachment storage. Optional: a
50
- * deployment that serves no attachment storage omits it, and the form then
51
- * refuses to stage an attachment at all.
52
- */
53
- uploadAttachment?(file: File, kind: TaskAttachmentKind): Promise<TaskAttachment>;
54
- }
55
- /**
56
- * The URL of one stored image. The board serves it only for an id a card of
57
- * this board references, so the URL is useless on its own.
58
- * @param attachmentId - the stored object's identifier.
59
- * @returns the document-relative URL of the image.
60
- */
61
- export declare function attachmentImageUrl(attachmentId: string): string;
62
- export declare class HttpTaskBoardHostTransport implements TaskBoardHostTransport {
63
- private readonly storage;
64
- constructor(storage?: Pick<Storage, 'getItem' | 'setItem'> | undefined);
65
- bootstrap(legacy: readonly TaskRecord[]): Promise<TaskBoardSnapshot>;
66
- state(): Promise<TaskBoardSnapshot>;
67
- action(action: TaskBoardAction, initiator?: string): Promise<TaskBoardSnapshot>;
68
- private post;
69
- private request;
70
- /**
71
- * Ask the Host to turn pasted text into task fields. The route answers a
72
- * typed failure (no model, timeout, unparseable reply) already phrased for
73
- * the form, so the UI never renders a raw status code (issue #1540).
74
- */
75
- parseDraft(request: TaskBoardParseRequest, signal?: AbortSignal): Promise<TaskBoardParseDraft>;
76
- /**
77
- * Upload one attachment into the Host's attachment storage.
78
- *
79
- * The bytes travel as the raw request body: the Host measures the ACTUAL
80
- * stream, publishes the object and answers with the host-computed metadata
81
- * (size, type and digest) that the card will record.
82
- * @param file - the picked file.
83
- * @param kind - whether the file is stored as an image or verbatim.
84
- * @returns the metadata the Host computed for the stored object.
85
- */
86
- uploadAttachment(file: File, kind: TaskAttachmentKind): Promise<TaskAttachment>;
87
- subscribe(listener: (event?: TaskBoardEventPayload) => void): () => void;
88
- }
@@ -1,128 +0,0 @@
1
- /**
2
- * Task-board client plugin: wires the framework-free core (controller,
3
- * execution service, store) to the real client runtime and mounts the two
4
- * DOM surfaces — the sidebar entry row and the board view in the center
5
- * column.
6
- *
7
- * Failure policy: DOM mounting problems are logged, never thrown — the web
8
- * shell fails the whole boot when a plugin apply throws, and an external
9
- * plugin must not take the GUI down.
10
- */
11
- import type { Context as ClientContext } from '@deepseek-ai/cordis';
12
- import type { ConfigForm, ConfigForms } from '@deepseek-ai/dsh-client-ui-settings/client';
13
- import { type TaskBoardSettings } from './TaskBoardSettingsCard.tsx';
14
- import { type TaskBoardKey } from './locales.ts';
15
- import { type TaskBoardCardDecorationProps, type TaskBoardDetailSectionProps, type TaskBoardSettingsSectionProps } from '../core/extension.ts';
16
- /** Domain-owned description of one settings namespace a family card binds. */
17
- export interface SettingsFormSpec<T> {
18
- /** Settings namespace the card edits. */
19
- namespace: string;
20
- /**
21
- * Narrow one wire section; undefined keeps the last accepted value. The
22
- * shared form already resolves the namespace's own serialized wire schema,
23
- * so a decoder exists only to narrow beyond that schema.
24
- */
25
- decode?: (section: unknown) => T | undefined;
26
- }
27
- /**
28
- * The family settings binder published by dsh-web-settings. Its `bind` resolves
29
- * a family namespace to the profile entry id that owns it and hands back the
30
- * shared configuration form, so it is the only seat that can reach this card's
31
- * form on a Host whose row id is not the namespace.
32
- */
33
- export interface SettingsFormBinder {
34
- /** Bind one family settings namespace. */
35
- bind<T>(spec: SettingsFormSpec<T>): ConfigForm<T>;
36
- }
37
- declare module '@deepseek-ai/dsh-client-ui-slots' {
38
- interface LocaleNamespaceMap {
39
- /** Task-board surface copy. */
40
- 'task-board': TaskBoardKey;
41
- }
42
- interface SlotMap {
43
- /**
44
- * The child slot the Web UI plugin group declares; this card registers
45
- * into the group's list seat rather than the official
46
- * bundle-configuration seat. Spelled here with the same shape so this
47
- * package can register without depending on the sibling UI package.
48
- */
49
- 'web-ui.plugin.item': {
50
- kind: 'list';
51
- scope: 'root';
52
- owner: SettingsPluginItemOwnerProps;
53
- };
54
- /** Provider task-detail section; the board declares and renders it. */
55
- 'task-board.detail.section': {
56
- kind: 'list';
57
- scope: 'root';
58
- owner: TaskBoardDetailSectionProps;
59
- };
60
- /** Provider settings section; the board declares and renders it. */
61
- 'task-board.settings.section': {
62
- kind: 'list';
63
- scope: 'root';
64
- owner: TaskBoardSettingsSectionProps;
65
- };
66
- /** Provider card decoration; the board declares and renders it. */
67
- 'task-board.card.decoration': {
68
- kind: 'list';
69
- scope: 'root';
70
- owner: TaskBoardCardDecorationProps;
71
- };
72
- }
73
- }
74
- /** Owner share of a plugin card (the section supplies nothing). */
75
- export interface SettingsPluginItemOwnerProps {
76
- /** Marker field: card owner props are intentionally empty. */
77
- children?: never;
78
- }
79
- declare module '@deepseek-ai/cordis' {
80
- interface Context {
81
- /**
82
- * Optional family settings binder provided by dsh-web-settings; absent
83
- * when that group plugin is not installed, so callers fall back to the
84
- * shared configuration forms service.
85
- */
86
- webUiSettings?: SettingsFormBinder;
87
- }
88
- }
89
- /**
90
- * Required services (fiber inject waiting — the runtime must be up first).
91
- * The generated remote namespaces are not all hard injects: `remote.session`
92
- * is one, while `remote.agentPresets` is reached through a scoped inject at
93
- * use time (see mountUi), because the namespace mounts with the official
94
- * api-remotes assembly applied beside this entry rather than before it.
95
- */
96
- export declare const inject: string[];
97
- /**
98
- * Mount the task board.
99
- * @param ctx - client root context (services: sessions, workspaces).
100
- */
101
- export declare function apply(ctx: ClientContext): void;
102
- /**
103
- * Bind the settings form this card stages over.
104
- *
105
- * The family binder (`ctx.get('webUiSettings')`, published by dsh-web-settings)
106
- * comes first: it is what traces this package's family namespace onto the
107
- * profile entry id the Host serves the form under, and it keeps the loopback
108
- * bridge as its own fallback. A page without that group falls back to the
109
- * shared configuration forms service bound directly at one of this package's
110
- * own profile entry ids.
111
- * @param ctx - client root context.
112
- * @returns the form the settings card reads and writes.
113
- */
114
- export declare function bindSettingsForm(ctx: ClientContext): ConfigForm<TaskBoardSettings>;
115
- /**
116
- * The profile entry id this package's own row carries, for a page that serves
117
- * no family binder.
118
- *
119
- * The shared describe mirror is the only local evidence of which row id this
120
- * profile actually serves, but it answers asynchronously: at plugin activation
121
- * it usually holds nothing yet. An unanswered mirror therefore binds the
122
- * aggregate row id rather than guessing among the candidates, and the binding
123
- * is re-resolved once the mirror answers — see
124
- * {@link createServedEntryForm}, which owns that rebinding.
125
- * @param forms - the shared configuration forms service.
126
- * @returns the entry id to bind before the mirror answers.
127
- */
128
- export declare function servedEntryId(forms: ConfigForms): string;