@dsh-workbench/core 0.2.15 → 0.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.
- package/client.js +320 -149
- package/dist/client/client.body.js +320 -149
- package/dist/client/index.js +321 -150
- package/dist/host/index.js +223 -61
- package/dist/types/app/client.d.ts +99 -45
- package/dist/types/app/layouts/rightbar/board-fact.d.ts +5 -0
- package/dist/types/app/layouts/sidebar/DebugFooterAction.d.ts +9 -5
- package/dist/types/modules/panels/model/diy-browser-act.d.ts +1 -1
- package/dist/types/modules/panels/model/diy-browser.d.ts +1 -0
- package/dist/types/modules/panels/model/diy-page.d.ts +5 -3
- package/dist/types/modules/panels/model/diy-scripts.d.ts +1 -1
- package/dist/types/shared/api/host/diy-debug-act.d.ts +31 -0
- package/dist/types/shared/api/host/host-args.d.ts +3 -0
- package/dist/types/shared/hooks/use-diy-debug.d.ts +4 -0
- package/docs/HANDOFF.md +32 -9
- package/docs/OPERATIONS.md +9 -0
- package/package.json +4 -3
- package/preset/diy.patch.yml +3 -0
- package/skills/workbench-module-diy/BUILD.md +5 -6
- package/skills/workbench-module-diy/DATASOURCE.md +3 -4
- package/skills/workbench-module-diy/DESIGN.md +3 -4
- package/skills/workbench-module-diy/KIT.md +11 -12
- package/skills/workbench-module-diy/LINKAGE.md +6 -7
- package/skills/workbench-module-diy/PANEL.md +9 -10
- package/skills/workbench-module-diy/REVIEW.md +2 -3
- package/skills/workbench-module-diy/SKILL.md +2 -3
- package/skills/workbench-module-diy/TOOLING.md +3 -8
- package/skills/workbench-module-diy/TOOLS.md +4 -9
- package/skills/workbench-module-diy/WIRING.md +3 -3
- package/dist/types/app/__tests__/workbench-styles.test.d.ts +0 -1
- package/dist/types/app/layouts/__tests__/async-feedback.test.d.ts +0 -1
- package/dist/types/app/layouts/__tests__/kit-preview-nav.test.d.ts +0 -1
- package/dist/types/app/layouts/__tests__/panel-hint.test.d.ts +0 -1
- package/dist/types/app/layouts/__tests__/project-selection.test.d.ts +0 -1
- package/dist/types/app/layouts/env-gate/__tests__/force-plan.test.d.ts +0 -1
- package/dist/types/app/layouts/env-gate/__tests__/gate-deadline.test.d.ts +0 -1
- package/dist/types/app/layouts/env-gate/__tests__/gate-hidden.test.d.ts +0 -1
- package/dist/types/app/layouts/env-gate/__tests__/gate-mocks.test.d.ts +0 -1
- package/dist/types/app/layouts/env-gate/gate-mock.d.ts +0 -18
- package/dist/types/app/layouts/market/__tests__/add-module-mock.test.d.ts +0 -1
- package/dist/types/app/layouts/market/__tests__/add-module-stages.test.d.ts +0 -1
- package/dist/types/app/layouts/market/__tests__/add-module-text.test.d.ts +0 -1
- package/dist/types/app/layouts/market/add-module-mock.d.ts +0 -14
- package/dist/types/app/layouts/rightbar/BoardMockStrip.d.ts +0 -5
- package/dist/types/app/layouts/rightbar/DebugStrip.d.ts +0 -11
- package/dist/types/app/layouts/rightbar/__tests__/board-mock.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/board-plan.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/board-selection.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/breadcrumbs.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-catalog.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-change.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-dots.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-freshness.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-hint-visible.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-installed.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-live.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-mock.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-order.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-row-icon.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-rows-libs.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-rows-plugins.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-rows.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-running-display.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-section-icon.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-settle.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-shared.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-state-rules.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-workbench-act.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/market-workbench.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/panel-dismiss.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/panel-drag-target.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/panel-mock.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/panel-plugin-rows.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/panel-scope-ui.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/panel-write.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/suite-world.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/__tests__/use-panels.test.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/board-mock.d.ts +0 -22
- package/dist/types/app/layouts/rightbar/kit-preview-controls.d.ts +0 -11
- package/dist/types/app/layouts/rightbar/kit-preview-frame.d.ts +0 -18
- package/dist/types/app/layouts/rightbar/kit-preview-hash.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/kit-preview-rows.d.ts +0 -6
- package/dist/types/app/layouts/rightbar/kit-preview.d.ts +0 -3
- package/dist/types/app/layouts/rightbar/market-installed-mock.d.ts +0 -9
- package/dist/types/app/layouts/rightbar/market-mock-types.d.ts +0 -58
- package/dist/types/app/layouts/rightbar/market-mock.d.ts +0 -4
- package/dist/types/app/layouts/rightbar/panel-mock.d.ts +0 -27
- package/dist/types/app/layouts/sidebar/__tests__/current-workspace.test.d.ts +0 -1
- package/dist/types/app/layouts/sidebar/__tests__/debug-ui.test.d.ts +0 -1
- package/dist/types/app/layouts/sidebar/__tests__/session-pick.test.d.ts +0 -1
- package/dist/types/app/layouts/sidebar/__tests__/session-row-ui.test.d.ts +0 -1
- package/dist/types/app/layouts/sidebar/__tests__/workspace-groups.test.d.ts +0 -1
- package/dist/types/app/layouts/sidebar/__tests__/workspace-name.test.d.ts +0 -1
- package/dist/types/app/units/__tests__/fixture-unit-mock.test.d.ts +0 -1
- package/dist/types/app/units/__tests__/manifests.test.d.ts +0 -1
- package/dist/types/app/units/__tests__/registry.test.d.ts +0 -1
- package/dist/types/app/units/fixture-unit-mock.d.ts +0 -7
- package/dist/types/dev/MockStrip.d.ts +0 -15
- package/dist/types/dev/surface-types.d.ts +0 -53
- package/dist/types/dev/surface.d.ts +0 -2
- package/dist/types/dev/surface.stub.d.ts +0 -2
- package/dist/types/modules/panels/__tests__/approval.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/config.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/diy-harness.d.ts +0 -105
- package/dist/types/modules/panels/__tests__/diy-report.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/diy-tools-health.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/diy-tools-panel.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/diy-tools-status.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/diy-tools.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/face.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-bundle.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-dependency.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-dispatch.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-env.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-plugin.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-registries.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-route.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-tools-harness.d.ts +0 -45
- package/dist/types/modules/panels/__tests__/market-tools.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-update.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market-workbench-update.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/market.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/plugin-actions.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/plugin-ledger.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/plugin-panel-market-parity.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/plugin-panel.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/plugin-section.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/plugin-tool-units-harness.d.ts +0 -69
- package/dist/types/modules/panels/__tests__/plugin-tool-units.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/prefs.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/routes.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/scope-machine.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/scope-support.d.ts +0 -51
- package/dist/types/modules/panels/__tests__/scope.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/service-release.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/service.test.d.ts +0 -1
- package/dist/types/modules/panels/__tests__/tools.test.d.ts +0 -1
- package/dist/types/shared/__tests__/i18n-keys.test.d.ts +0 -1
- package/dist/types/shared/api/__tests__/context-ref.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/approval-note-injection.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/capability-force.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/cli-error.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/config-sync.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/context-inject.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/data-root.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/events.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/fact-writes.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/facts.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/long-task.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/panel-state-route.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/plugin-catalog.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/plugin-login-hint.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/plugin-source.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/plugin-tools.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/png-fixtures.d.ts +0 -17
- package/dist/types/shared/api/host/__tests__/post-channels.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/preflight-fixtures.d.ts +0 -19
- package/dist/types/shared/api/host/__tests__/preflight-warm.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/preflight.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/probe-cache.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/probe-libs.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/probe-units-cache.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/probe-units-npm-source.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/probe-units-release.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/probe-units.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/probe-verdict.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/profile-registries.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/provision-dependency.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/registry-declaration.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/release.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/self-update.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/tool-approval.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/tool-kit.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/tool-scope.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/tool-surface.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/unit-face.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/unit-readiness.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/unit-registry.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/unit-roster-facts.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/value-handoff.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/version-range.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/workspace-store.test.d.ts +0 -1
- package/dist/types/shared/api/host/__tests__/write-result.test.d.ts +0 -1
- package/dist/types/shared/hooks/__tests__/mock-mode.test.d.ts +0 -1
- package/dist/types/shared/hooks/__tests__/use-api-resource.test.d.ts +0 -1
- package/dist/types/shared/hooks/__tests__/use-capabilities.test.d.ts +0 -1
- package/dist/types/shared/hooks/__tests__/use-visible-busy.test.d.ts +0 -1
- package/dist/types/shared/hooks/mock-mode.d.ts +0 -2
- package/dist/types/shared/hooks/use-fixture-pick.d.ts +0 -20
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AddModuleOutcome, AddModulePhase, AddModulePreview, AddModuleProblem, AddModuleState } from './use-add-module';
|
|
2
|
-
export interface AddModuleMock {
|
|
3
|
-
readonly id: string;
|
|
4
|
-
readonly label: string;
|
|
5
|
-
readonly phase: AddModulePhase;
|
|
6
|
-
readonly spec: string;
|
|
7
|
-
readonly guideOpen?: boolean;
|
|
8
|
-
readonly problem?: AddModuleProblem;
|
|
9
|
-
readonly preview?: AddModulePreview;
|
|
10
|
-
readonly outcome?: AddModuleOutcome;
|
|
11
|
-
readonly failure?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const ADD_MODULE_MOCKS: readonly AddModuleMock[];
|
|
14
|
-
export declare function stateOfMock(base: AddModuleState, mock: AddModuleMock): AddModuleState;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DebugState, Translate } from '@dsh-workbench/shared';
|
|
2
|
-
export interface DebugStripProps {
|
|
3
|
-
readonly board: string | null;
|
|
4
|
-
readonly t: Translate;
|
|
5
|
-
}
|
|
6
|
-
export interface DebugStripView {
|
|
7
|
-
readonly text: string;
|
|
8
|
-
readonly stalled: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare function debugStripView(state: DebugState, t: Translate): DebugStripView;
|
|
11
|
-
export declare function DebugStrip({ board, t }: DebugStripProps): JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { UnitManifest } from '@dsh-workbench/shared';
|
|
2
|
-
import type { BoardShape } from './board-shape';
|
|
3
|
-
export interface BoardMockExpect {
|
|
4
|
-
readonly cards: number;
|
|
5
|
-
readonly empty: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface BoardMock {
|
|
8
|
-
readonly id: string;
|
|
9
|
-
readonly label: string;
|
|
10
|
-
readonly note: string;
|
|
11
|
-
readonly shape: BoardShape;
|
|
12
|
-
readonly expect?: BoardMockExpect;
|
|
13
|
-
}
|
|
14
|
-
export declare function buildBoardMocks(roster: readonly UnitManifest[]): readonly BoardMock[];
|
|
15
|
-
export interface BoardFixtures {
|
|
16
|
-
readonly mock: BoardMock | undefined;
|
|
17
|
-
readonly mocks: readonly BoardMock[];
|
|
18
|
-
readonly index: number;
|
|
19
|
-
readonly pick: (next: number) => void;
|
|
20
|
-
readonly shape: BoardShape;
|
|
21
|
-
}
|
|
22
|
-
export declare function useBoardMock(roster: readonly UnitManifest[]): BoardFixtures;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare function TextFieldDemo(): JSX.Element;
|
|
2
|
-
export declare function SelectDemo({ variant }: {
|
|
3
|
-
readonly variant?: 'boxed' | 'ghost';
|
|
4
|
-
}): JSX.Element;
|
|
5
|
-
export declare function SelectRichDemo(): JSX.Element;
|
|
6
|
-
export declare function SelectStateDemo(): JSX.Element;
|
|
7
|
-
export declare function AppearanceDemo(): JSX.Element;
|
|
8
|
-
export declare function ChoiceDemo(): JSX.Element;
|
|
9
|
-
export declare function FormActionsDemo(): JSX.Element;
|
|
10
|
-
export declare function SaveBarDemo(): JSX.Element;
|
|
11
|
-
export declare function LinkDemo(): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from '@dsh-workbench/shared';
|
|
2
|
-
export declare function KitNavProvider({ children }: {
|
|
3
|
-
readonly children?: ReactNode;
|
|
4
|
-
}): JSX.Element;
|
|
5
|
-
export declare function KitNav(): JSX.Element | null;
|
|
6
|
-
export declare function Section({ title, note, children, }: {
|
|
7
|
-
readonly title: string;
|
|
8
|
-
readonly note?: string;
|
|
9
|
-
readonly children?: ReactNode;
|
|
10
|
-
}): JSX.Element;
|
|
11
|
-
export declare function Grid({ children }: {
|
|
12
|
-
readonly children?: ReactNode;
|
|
13
|
-
}): JSX.Element;
|
|
14
|
-
export declare function Cell({ label, wide, children, }: {
|
|
15
|
-
readonly label: string;
|
|
16
|
-
readonly wide?: boolean;
|
|
17
|
-
readonly children?: ReactNode;
|
|
18
|
-
}): JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function hashTargetsSection(anchor: string, hash: string): boolean;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare function RowsSection(): JSX.Element;
|
|
2
|
-
export declare function FormSection(): JSX.Element;
|
|
3
|
-
export declare function ActivitySection(): JSX.Element;
|
|
4
|
-
export declare function LongTaskSection(): JSX.Element;
|
|
5
|
-
export declare function IconSection(): JSX.Element;
|
|
6
|
-
export declare function StripSection(): JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { UnitManifest } from '@dsh-workbench/shared';
|
|
2
|
-
import type { CapabilityMap } from '../../../shared/hooks/use-capabilities';
|
|
3
|
-
import type { MarketMock } from './market-mock-types';
|
|
4
|
-
export declare function installedMocks(input: {
|
|
5
|
-
readonly id: string;
|
|
6
|
-
readonly found: UnitManifest;
|
|
7
|
-
readonly mine: UnitManifest;
|
|
8
|
-
readonly probe: (unit: string, status: CapabilityMap[string]['status'], extra?: Partial<CapabilityMap[string]>) => CapabilityMap;
|
|
9
|
-
}): readonly MarketMock[];
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { InstalledWorkbenchModule } from './market-rows';
|
|
2
|
-
import type { InstalledPlugin } from '../../../shared/api/installed-plugins';
|
|
3
|
-
import type { UnitManifest } from '@dsh-workbench/shared';
|
|
4
|
-
import type { MarketRowAction, ModuleUpdateMap } from './market-rows';
|
|
5
|
-
import type { CapabilityMap } from '../../../shared/hooks/use-capabilities';
|
|
6
|
-
import type { MarketState } from './market-rows';
|
|
7
|
-
import type { WorkbenchVersion } from '../../../shared/api/bundle-install';
|
|
8
|
-
export interface MarketMockExpect {
|
|
9
|
-
readonly rows: number;
|
|
10
|
-
readonly state?: MarketState;
|
|
11
|
-
readonly actions?: readonly MarketRowAction[];
|
|
12
|
-
readonly titleChars?: number;
|
|
13
|
-
readonly shared?: number;
|
|
14
|
-
readonly installed?: number;
|
|
15
|
-
readonly installedState?: MarketState;
|
|
16
|
-
readonly installedActions?: readonly MarketRowAction[];
|
|
17
|
-
readonly installedNote?: boolean;
|
|
18
|
-
readonly installedHint?: string;
|
|
19
|
-
readonly sharedActions?: readonly MarketRowAction[];
|
|
20
|
-
readonly plugins?: number;
|
|
21
|
-
readonly pluginActions?: readonly MarketRowAction[];
|
|
22
|
-
readonly pluginNote?: boolean;
|
|
23
|
-
readonly pluginNoteKey?: 'panels.market.pluginBroken';
|
|
24
|
-
readonly pluginState?: MarketState;
|
|
25
|
-
readonly notice?: boolean;
|
|
26
|
-
readonly local?: boolean;
|
|
27
|
-
readonly noteKey?: 'panels.market.needCommands';
|
|
28
|
-
readonly version?: {
|
|
29
|
-
readonly installed?: string;
|
|
30
|
-
readonly latest?: string;
|
|
31
|
-
};
|
|
32
|
-
readonly workbenchState?: MarketState;
|
|
33
|
-
readonly workbenchActions?: readonly MarketRowAction[];
|
|
34
|
-
readonly workbenchNoteKey?: 'panels.market.workbenchLocal';
|
|
35
|
-
}
|
|
36
|
-
export interface MarketMock {
|
|
37
|
-
readonly id: string;
|
|
38
|
-
readonly label: string;
|
|
39
|
-
readonly manifests: readonly UnitManifest[];
|
|
40
|
-
readonly capabilities: CapabilityMap | null;
|
|
41
|
-
readonly pending?: {
|
|
42
|
-
readonly id: string;
|
|
43
|
-
readonly action: MarketRowAction;
|
|
44
|
-
};
|
|
45
|
-
readonly updates?: ModuleUpdateMap;
|
|
46
|
-
readonly installed?: readonly InstalledWorkbenchModule[];
|
|
47
|
-
readonly workbench?: WorkbenchVersion;
|
|
48
|
-
readonly installedRead?: boolean;
|
|
49
|
-
readonly plugins?: readonly InstalledPlugin[];
|
|
50
|
-
readonly loaded?: boolean;
|
|
51
|
-
readonly confirming?: string;
|
|
52
|
-
readonly failure?: {
|
|
53
|
-
readonly id: string;
|
|
54
|
-
readonly message: string;
|
|
55
|
-
};
|
|
56
|
-
readonly notice?: string;
|
|
57
|
-
readonly expect: MarketMockExpect;
|
|
58
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { UnitManifest } from '@dsh-workbench/shared';
|
|
2
|
-
import type { MarketMock } from './market-mock-types';
|
|
3
|
-
export type { MarketMock, MarketMockExpect } from './market-mock-types';
|
|
4
|
-
export declare function buildMarketMocks(roster: readonly UnitManifest[]): readonly MarketMock[];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { UnitManifest } from '@dsh-workbench/shared';
|
|
2
|
-
import type { CapabilityMap } from '../../../shared/hooks/use-capabilities';
|
|
3
|
-
import type { PanelPluginUnit, PanelUnit } from './use-panels';
|
|
4
|
-
export interface PanelMockExpect {
|
|
5
|
-
readonly rows: number;
|
|
6
|
-
readonly badge?: string | null;
|
|
7
|
-
readonly on?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface PanelMock {
|
|
10
|
-
readonly id: string;
|
|
11
|
-
readonly label: string;
|
|
12
|
-
readonly units: readonly PanelUnit[];
|
|
13
|
-
readonly plugins?: readonly PanelPluginUnit[];
|
|
14
|
-
readonly capabilities: CapabilityMap | null;
|
|
15
|
-
readonly busy?: boolean;
|
|
16
|
-
readonly failed?: boolean;
|
|
17
|
-
readonly drag?: {
|
|
18
|
-
readonly from: number;
|
|
19
|
-
readonly over: number | null;
|
|
20
|
-
readonly at?: {
|
|
21
|
-
readonly x: number;
|
|
22
|
-
readonly y: number;
|
|
23
|
-
};
|
|
24
|
-
} | undefined;
|
|
25
|
-
readonly expect: PanelMockExpect;
|
|
26
|
-
}
|
|
27
|
-
export declare function buildPanelMocks(roster: readonly UnitManifest[]): readonly PanelMock[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { BoardModule, UnitManifest, UnitOwnedClientFace } from '@dsh-workbench/shared';
|
|
2
|
-
export declare const FIXTURE_UNIT_ID = "wb-fixture";
|
|
3
|
-
export declare const CRASH_UNIT_ID = "wb-fixture-crash";
|
|
4
|
-
export declare const FIXTURE_FACE: UnitOwnedClientFace;
|
|
5
|
-
export declare const CRASH_FACE: UnitOwnedClientFace;
|
|
6
|
-
export declare function fixtureRoster(roster: readonly UnitManifest[]): readonly UnitManifest[];
|
|
7
|
-
export declare function fixtureSeed(roster: readonly UnitManifest[], all: readonly BoardModule[], crash?: boolean): readonly BoardModule[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import '@/shared/styles/mock-strip.css';
|
|
2
|
-
export declare function MockStrip({ mocks, index, onPick, note, real, }: {
|
|
3
|
-
readonly mocks: readonly {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly label: string;
|
|
6
|
-
}[];
|
|
7
|
-
readonly index: number;
|
|
8
|
-
readonly onPick: (next: number) => void;
|
|
9
|
-
readonly note?: string;
|
|
10
|
-
readonly real?: {
|
|
11
|
-
readonly label: string;
|
|
12
|
-
readonly active: boolean;
|
|
13
|
-
readonly onPick: () => void;
|
|
14
|
-
} | undefined;
|
|
15
|
-
}): JSX.Element;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
import type { BoardModule, UnitManifest } from '@dsh-workbench/shared';
|
|
3
|
-
import type { PreflightSnapshot } from '../shared/api/host/preflight';
|
|
4
|
-
import type { BoardShape } from '../app/layouts/rightbar/board-shape';
|
|
5
|
-
import type { AddModuleMock } from '../app/layouts/market/add-module-mock';
|
|
6
|
-
import type { AddModuleState } from '../app/layouts/market/use-add-module';
|
|
7
|
-
export interface DevPickable {
|
|
8
|
-
readonly id: string;
|
|
9
|
-
readonly label: string;
|
|
10
|
-
}
|
|
11
|
-
export interface DevPickOptions<T extends DevPickable> {
|
|
12
|
-
readonly fixtures: readonly T[];
|
|
13
|
-
readonly selected?: string | null | undefined;
|
|
14
|
-
readonly onSelect?: ((id: string | null) => void) | undefined;
|
|
15
|
-
readonly enabled?: boolean | undefined;
|
|
16
|
-
readonly initial?: string | null | undefined;
|
|
17
|
-
}
|
|
18
|
-
export interface DevPick<T extends DevPickable> {
|
|
19
|
-
readonly enabled: boolean;
|
|
20
|
-
readonly active: string | null;
|
|
21
|
-
readonly current: T | undefined;
|
|
22
|
-
readonly nonce: number;
|
|
23
|
-
readonly index: number;
|
|
24
|
-
pick(id: string | null): void;
|
|
25
|
-
}
|
|
26
|
-
export interface DevStrips<T extends DevPickable> {
|
|
27
|
-
readonly pick: DevPick<T>;
|
|
28
|
-
readonly current: T | undefined;
|
|
29
|
-
readonly enabled: boolean;
|
|
30
|
-
readonly strip: ReactNode;
|
|
31
|
-
}
|
|
32
|
-
export interface DevBoard {
|
|
33
|
-
readonly shape: BoardShape;
|
|
34
|
-
readonly seed: readonly BoardModule[];
|
|
35
|
-
readonly strip: (show: boolean) => ReactNode;
|
|
36
|
-
readonly mode: boolean;
|
|
37
|
-
}
|
|
38
|
-
export type DevStripSite = 'panel' | 'market' | 'addModule';
|
|
39
|
-
export interface DevSurface {
|
|
40
|
-
on(search: string): boolean;
|
|
41
|
-
crash(search: string): boolean;
|
|
42
|
-
useBoard(input: {
|
|
43
|
-
readonly manifests: readonly UnitManifest[];
|
|
44
|
-
readonly all: readonly BoardModule[];
|
|
45
|
-
readonly search: string;
|
|
46
|
-
}): DevBoard;
|
|
47
|
-
useStrips<T extends DevPickable>(site: DevStripSite, manifests: readonly UnitManifest[]): DevStrips<T>;
|
|
48
|
-
addModuleState(base: AddModuleState, mock: AddModuleMock): AddModuleState;
|
|
49
|
-
gateStrip(options: {
|
|
50
|
-
readonly onPick: (snapshot: PreflightSnapshot | null) => void;
|
|
51
|
-
}): HTMLElement | null;
|
|
52
|
-
readonly kitModule: BoardModule | null;
|
|
53
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import type { UnitManifest } from '@dsh-workbench/shared';
|
|
2
|
-
import { type DebugStore, type PanelStateStore } from '@dsh-workbench/shared/host';
|
|
3
|
-
import type { BundleInstallOutcome } from '../model/market';
|
|
4
|
-
import { panelsUnit } from '../unit';
|
|
5
|
-
export type Application = 'applied' | 'restart-required' | 'overridden' | 'cancelled' | 'failed';
|
|
6
|
-
export interface ProbeStep {
|
|
7
|
-
readonly stdout?: string;
|
|
8
|
-
readonly stderr?: string;
|
|
9
|
-
readonly exitCode?: number;
|
|
10
|
-
readonly timedOut?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const demoUnit: UnitManifest;
|
|
13
|
-
export { panelsUnit };
|
|
14
|
-
export declare function createDiyRig(): {
|
|
15
|
-
root: () => string;
|
|
16
|
-
WORKSHOP: () => string;
|
|
17
|
-
PACKAGES: () => string;
|
|
18
|
-
PROFILE: () => string;
|
|
19
|
-
writeManifest: (at: string, manifest: unknown) => void;
|
|
20
|
-
scaffold: (unit: string, description?: string) => string;
|
|
21
|
-
markInstalled: (pkg: string, at: string) => void;
|
|
22
|
-
outcomeOf: (application: Application) => BundleInstallOutcome;
|
|
23
|
-
diyExec: (sessionId?: string) => unknown;
|
|
24
|
-
NORMAL_EXEC: {
|
|
25
|
-
agent: {
|
|
26
|
-
session: {
|
|
27
|
-
id: string;
|
|
28
|
-
header: {
|
|
29
|
-
cwd: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
fakeShell: (plan: readonly ProbeStep[]) => {
|
|
35
|
-
shell: never;
|
|
36
|
-
commands: string[];
|
|
37
|
-
};
|
|
38
|
-
harness: (options?: {
|
|
39
|
-
manifests?: UnitManifest[];
|
|
40
|
-
outcome?: BundleInstallOutcome;
|
|
41
|
-
withTools?: boolean;
|
|
42
|
-
probe?: readonly ProbeStep[];
|
|
43
|
-
mounted?: readonly string[];
|
|
44
|
-
refused?: readonly {
|
|
45
|
-
unit: string;
|
|
46
|
-
reasons: readonly string[];
|
|
47
|
-
}[];
|
|
48
|
-
failures?: Readonly<Record<string, string>>;
|
|
49
|
-
panelState?: PanelStateStore;
|
|
50
|
-
debug?: DebugStore;
|
|
51
|
-
}) => {
|
|
52
|
-
specs: string[];
|
|
53
|
-
registered: {
|
|
54
|
-
name: string;
|
|
55
|
-
parameters?: Record<string, unknown>;
|
|
56
|
-
execute: (args: unknown, exec?: unknown) => Promise<unknown>;
|
|
57
|
-
}[];
|
|
58
|
-
tool: (name: string) => {
|
|
59
|
-
name: string;
|
|
60
|
-
parameters?: Record<string, unknown>;
|
|
61
|
-
execute: (args: unknown, exec?: unknown) => Promise<unknown>;
|
|
62
|
-
};
|
|
63
|
-
ctx: {
|
|
64
|
-
get: (key: string) => DebugStore | PanelStateStore | {
|
|
65
|
-
all: () => {
|
|
66
|
-
unit: string;
|
|
67
|
-
}[];
|
|
68
|
-
refusals: () => readonly {
|
|
69
|
-
unit: string;
|
|
70
|
-
reasons: readonly string[];
|
|
71
|
-
}[];
|
|
72
|
-
failureOf: (unit: string) => string | undefined;
|
|
73
|
-
} | ((relative: string) => string) | {
|
|
74
|
-
register(definition: {
|
|
75
|
-
name: string;
|
|
76
|
-
parameters?: Record<string, unknown>;
|
|
77
|
-
execute: (args: unknown, exec?: unknown) => Promise<unknown>;
|
|
78
|
-
}): () => void;
|
|
79
|
-
dir?: undefined;
|
|
80
|
-
} | {
|
|
81
|
-
dir: string;
|
|
82
|
-
register?: undefined;
|
|
83
|
-
} | undefined;
|
|
84
|
-
logger: {
|
|
85
|
-
info: () => void;
|
|
86
|
-
warn: () => void;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
panels: import("../model/service").PanelsService;
|
|
90
|
-
panelState: PanelStateStore;
|
|
91
|
-
debug: DebugStore;
|
|
92
|
-
registry: {
|
|
93
|
-
all: () => {
|
|
94
|
-
unit: string;
|
|
95
|
-
}[];
|
|
96
|
-
refusals: () => readonly {
|
|
97
|
-
unit: string;
|
|
98
|
-
reasons: readonly string[];
|
|
99
|
-
}[];
|
|
100
|
-
failureOf: (unit: string) => string | undefined;
|
|
101
|
-
};
|
|
102
|
-
disposers: (() => void)[];
|
|
103
|
-
commands: string[];
|
|
104
|
-
};
|
|
105
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|