@dsh-workbench/shared 1.1.8 → 1.1.10
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/dist/api/blocker-table.d.ts +1 -0
- package/dist/api/blocker-table.js +1 -1
- package/dist/components/SelectField.css +0 -6
- package/dist/components/SelectField.d.ts +2 -3
- package/dist/components/SelectField.js +9 -30
- package/dist/components/SelectFieldNodes.d.ts +3 -1
- package/dist/components/SelectFieldNodes.js +2 -1
- package/dist/components/SelectFieldWheel.d.ts +9 -0
- package/dist/components/SelectFieldWheel.js +35 -0
- package/dist/config/constants.d.ts +4 -4
- package/dist/config/constants.js +4 -4
- package/dist/contract/capabilities.d.ts +29 -0
- package/dist/contract/capabilities.js +1 -0
- package/dist/contract/needs.d.ts +3 -3
- package/dist/contract/needs.js +1 -1
- package/dist/contract/plugin-source.d.ts +19 -0
- package/dist/contract/protocol/bundle-install.d.ts +3 -1
- package/dist/contract/protocol/bundle-install.js +3 -0
- package/dist/contract/protocol/market-index.d.ts +1 -1
- package/dist/contract/protocol/platform.d.ts +1 -1
- package/dist/contract/runner.d.ts +6 -0
- package/dist/contract/runner.js +1 -0
- package/dist/contract/unit.d.ts +4 -4
- package/dist/host/adapter-contract.d.ts +3 -0
- package/dist/host/adapter-contract.js +93 -0
- package/dist/host/adapter-set.js +6 -4
- package/dist/host/adapter-types.d.ts +1 -1
- package/dist/host/bundle-manager.d.ts +3 -0
- package/dist/host/bundle-manager.js +181 -0
- package/dist/host/cli.js +3 -1
- package/dist/host/config-sync.d.ts +48 -0
- package/dist/host/config-sync.js +342 -0
- package/dist/host/dsh-plugins.d.ts +5 -0
- package/dist/host/dsh-plugins.js +51 -0
- package/dist/host/extension.js +1 -1
- package/dist/host/flow/check.d.ts +9 -0
- package/dist/host/flow/check.js +179 -0
- package/dist/host/flow/expr.d.ts +30 -0
- package/dist/host/flow/expr.js +99 -0
- package/dist/host/flow/kit.d.ts +14 -0
- package/dist/host/flow/kit.js +13 -0
- package/dist/host/flow/run.d.ts +13 -0
- package/dist/host/flow/run.js +287 -0
- package/dist/host/flow/types.d.ts +188 -0
- package/dist/host/flow/types.js +1 -0
- package/dist/host/host-actions.d.ts +2 -0
- package/dist/host/host-actions.js +5 -0
- package/dist/host/host-kit.d.ts +19 -0
- package/dist/host/host-kit.js +14 -0
- package/dist/host/http.d.ts +2 -6
- package/dist/host/http.js +2 -2
- package/dist/host/installed-module.d.ts +23 -0
- package/dist/host/installed-module.js +264 -0
- package/dist/host/lib-install.d.ts +7 -9
- package/dist/host/lib-install.js +9 -12
- package/dist/host/lib-runners.d.ts +3 -5
- package/dist/host/lib-runners.js +2 -2
- package/dist/host/local-declaration.d.ts +7 -0
- package/dist/host/local-declaration.js +33 -0
- package/dist/host/module-root.d.ts +1 -0
- package/dist/host/module-root.js +5 -0
- package/dist/host/npm-registry.d.ts +10 -0
- package/dist/host/npm-registry.js +16 -0
- package/dist/host/opencli-runner.d.ts +2 -1
- package/dist/host/package-content.d.ts +7 -0
- package/dist/host/package-content.js +69 -0
- package/dist/host/package-kind.d.ts +13 -0
- package/dist/host/package-kind.js +51 -0
- package/dist/host/package-route.d.ts +31 -0
- package/dist/host/package-route.js +57 -0
- package/dist/host/paths.d.ts +11 -19
- package/dist/host/paths.js +16 -43
- package/dist/host/platform.js +1 -1
- package/dist/host/plugin-ledger.d.ts +8 -8
- package/dist/host/plugin-ledger.js +23 -16
- package/dist/host/plugin.d.ts +1 -2
- package/dist/host/plugin.js +4 -5
- package/dist/host/port-types.d.ts +42 -9
- package/dist/host/preflight.d.ts +3 -2
- package/dist/host/profile-create.d.ts +18 -0
- package/dist/host/profile-create.js +118 -0
- package/dist/host/profile-registries.d.ts +10 -0
- package/dist/host/profile-registries.js +150 -0
- package/dist/host/registry-declaration.d.ts +21 -0
- package/dist/host/registry-declaration.js +33 -0
- package/dist/host/release-probe.d.ts +34 -0
- package/dist/host/release-probe.js +88 -0
- package/dist/host/runner.d.ts +26 -0
- package/dist/host/runner.js +50 -0
- package/dist/host/shell.d.ts +0 -2
- package/dist/host/shell.js +0 -7
- package/dist/host/spec.js +1 -1
- package/dist/host/supply-index.d.ts +1 -0
- package/dist/host/supply-index.js +8 -7
- package/dist/host/supply-port.js +13 -3
- package/dist/host/unit-face.d.ts +2 -1
- package/dist/host/version.js +11 -6
- package/dist/host.d.ts +24 -6
- package/dist/host.js +23 -6
- package/dist/i18n/en.js +23 -24
- package/dist/i18n/index.d.ts +23 -24
- package/dist/i18n/runtime-terms.d.ts +15 -0
- package/dist/i18n/runtime-terms.js +22 -0
- package/dist/i18n/zh.d.ts +22 -23
- package/dist/i18n/zh.js +22 -23
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/testing/fake-adapter-set.d.ts +5 -0
- package/dist/testing/fake-adapter-set.js +150 -0
- package/dist/testing/needs.js +1 -1
- package/dist/testing.d.ts +1 -0
- package/dist/testing.js +1 -0
- package/package.json +1 -1
- package/src/api/__tests__/blocker-table.test.ts +25 -0
- package/src/api/{workbench-client.test.ts → __tests__/workbench-client.test.ts} +2 -2
- package/src/api/blocker-table.ts +6 -2
- package/src/components/SelectField.css +0 -6
- package/src/components/SelectField.tsx +7 -36
- package/src/components/SelectFieldNodes.tsx +4 -1
- package/src/components/{Card.test.tsx → __tests__/Card.test.tsx} +2 -2
- package/src/components/{CardAnchor.test.tsx → __tests__/CardAnchor.test.tsx} +3 -3
- package/src/components/{CardHead.test.tsx → __tests__/CardHead.test.tsx} +1 -1
- package/src/components/{ChoiceGroup.test.tsx → __tests__/ChoiceGroup.test.tsx} +2 -2
- package/src/components/{ConfirmBar.test.tsx → __tests__/ConfirmBar.test.tsx} +5 -5
- package/src/components/{Field.test.tsx → __tests__/Field.test.tsx} +1 -1
- package/src/components/{Form.test.tsx → __tests__/Form.test.tsx} +5 -5
- package/src/components/{FormActions.test.tsx → __tests__/FormActions.test.tsx} +3 -3
- package/src/components/{FormRows.test.tsx → __tests__/FormRows.test.tsx} +2 -2
- package/src/components/{FormTypes.test.ts → __tests__/FormTypes.test.ts} +1 -1
- package/src/components/{FormWiring.test.tsx → __tests__/FormWiring.test.tsx} +4 -4
- package/src/components/{Link.test.tsx → __tests__/Link.test.tsx} +1 -1
- package/src/components/{Rows.test.tsx → __tests__/Rows.test.tsx} +2 -2
- package/src/components/{SelectField.test.tsx → __tests__/SelectField.test.tsx} +7 -37
- package/src/components/{Spinner.test.tsx → __tests__/Spinner.test.tsx} +4 -4
- package/src/config/{constants.test.ts → __tests__/constants.test.ts} +1 -1
- package/src/config/{storage.test.ts → __tests__/storage.test.ts} +1 -1
- package/src/config/constants.ts +4 -4
- package/src/contract/capabilities.ts +30 -0
- package/src/contract/needs.ts +4 -4
- package/src/contract/plugin-source.ts +24 -0
- package/src/contract/protocol/bundle-install.ts +7 -1
- package/src/contract/protocol/market-index.ts +1 -0
- package/src/contract/protocol/platform.ts +1 -1
- package/src/contract/runner.ts +6 -0
- package/src/contract/unit.ts +4 -4
- package/src/host/{extension.test.ts → __tests__/extension.test.ts} +4 -4
- package/src/host/{install-failure.test.ts → __tests__/install-failure.test.ts} +1 -1
- package/src/host/{installed-sources.test.ts → __tests__/installed-sources.test.ts} +1 -1
- package/src/host/__tests__/lib-runners.test.ts +11 -2
- package/src/host/__tests__/plugin-ledger.test.ts +19 -6
- package/src/host/{recipe.test.ts → __tests__/recipe.test.ts} +3 -3
- package/src/host/__tests__/runtime-layout.test.ts +14 -0
- package/src/host/__tests__/supply-index.test.ts +2 -2
- package/src/host/__tests__/supply-port.test.ts +32 -0
- package/src/host/adapter-contract.ts +93 -0
- package/src/host/adapter-set.ts +6 -4
- package/src/host/adapter-types.ts +1 -1
- package/src/host/bundle-manager.ts +195 -0
- package/src/host/cli.ts +3 -1
- package/src/host/config-sync.ts +386 -0
- package/src/host/dsh-plugins.ts +60 -0
- package/src/host/extension.ts +1 -1
- package/src/host/flow/__tests__/advanced.test.ts +302 -0
- package/src/host/flow/__tests__/check.test.ts +169 -0
- package/src/host/flow/__tests__/run.test.ts +301 -0
- package/src/host/flow/check.ts +216 -0
- package/src/host/flow/expr.ts +94 -0
- package/src/host/flow/kit.ts +30 -0
- package/src/host/flow/run.ts +325 -0
- package/src/host/flow/types.ts +199 -0
- package/src/host/host-actions.ts +7 -0
- package/src/host/host-kit.ts +26 -0
- package/src/host/http.ts +6 -8
- package/src/host/installed-module.ts +272 -0
- package/src/host/lib-install.ts +14 -12
- package/src/host/lib-runners.ts +6 -8
- package/src/host/local-declaration.ts +37 -0
- package/src/host/module-root.ts +6 -0
- package/src/host/npm-registry.ts +21 -0
- package/src/host/package-content.ts +76 -0
- package/src/host/package-kind.ts +63 -0
- package/src/host/package-route.ts +93 -0
- package/src/host/paths.ts +27 -52
- package/src/host/platform.ts +1 -1
- package/src/host/plugin-ledger.ts +25 -18
- package/src/host/plugin.ts +4 -5
- package/src/host/port-types.ts +43 -9
- package/src/host/preflight.ts +3 -2
- package/src/host/profile-create.ts +133 -0
- package/src/host/profile-registries.ts +145 -0
- package/src/host/registry-declaration.ts +70 -0
- package/src/host/release-probe.ts +202 -0
- package/src/host/shell.ts +0 -9
- package/src/host/spec.ts +1 -1
- package/src/host/supply-index.ts +9 -7
- package/src/host/supply-port.ts +13 -3
- package/src/host/unit-face.ts +2 -1
- package/src/host/version.ts +12 -7
- package/src/host.ts +34 -6
- package/src/i18n/{index.test.ts → __tests__/index.test.ts} +3 -3
- package/src/i18n/{merge.test.ts → __tests__/merge.test.ts} +1 -1
- package/src/i18n/{zh.test.ts → __tests__/zh.test.ts} +2 -2
- package/src/i18n/en.ts +23 -25
- package/src/i18n/runtime-terms.ts +26 -0
- package/src/i18n/zh.ts +22 -24
- package/src/index.ts +4 -0
- package/src/lib/{board-fact.test.ts → __tests__/board-fact.test.ts} +1 -1
- package/src/lib/{busy.test.ts → __tests__/busy.test.ts} +1 -1
- package/src/lib/{form-problem.test.ts → __tests__/form-problem.test.ts} +1 -1
- package/src/lib/{git-address.test.ts → __tests__/git-address.test.ts} +1 -1
- package/src/lib/{react.test.ts → __tests__/react.test.ts} +1 -1
- package/src/lib/{text.test.ts → __tests__/text.test.ts} +1 -1
- package/src/lib/{ui.test.ts → __tests__/ui.test.ts} +1 -1
- package/src/testing/__tests__/fake-adapter-set.test.ts +28 -0
- package/src/testing/fake-adapter-set.ts +173 -0
- package/src/testing/needs.ts +1 -1
- package/src/testing.ts +1 -0
- package/src/host/__tests__/command-name.test.ts +0 -16
- package/src/host/__tests__/opencli-runner.test.ts +0 -120
- package/src/host/channel-plugin.ts +0 -55
- package/src/host/command-name.ts +0 -15
- package/src/host/opencli-runner.ts +0 -76
- package/src/host/paths.test.ts +0 -26
- package/src/host/plugin-source.ts +0 -137
- package/src/host/runtime-links.test.ts +0 -31
- package/src/host/runtime-links.ts +0 -23
package/dist/host/shell.d.ts
CHANGED
|
@@ -12,5 +12,3 @@ export declare function runShell(shell: DshShell, command: string, options?: {
|
|
|
12
12
|
timeoutMs?: number;
|
|
13
13
|
signal?: AbortSignal;
|
|
14
14
|
}): Promise<ShellResult>;
|
|
15
|
-
export declare function backgroundPrefix(): readonly string[];
|
|
16
|
-
export declare function backgroundLine(command: string, argv: readonly string[]): string;
|
package/dist/host/shell.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { GIT_TIMEOUT_MS } from '../config/constants.js';
|
|
2
|
-
import { quoteShellArg } from './shell-text.js';
|
|
3
2
|
const DEFAULT_MAX_BYTES = 8 * 1024 * 1024;
|
|
4
3
|
export async function runShell(shell, command, options = {}) {
|
|
5
4
|
const { workdir, timeoutMs = GIT_TIMEOUT_MS, signal } = options;
|
|
@@ -22,9 +21,3 @@ export async function runShell(shell, command, options = {}) {
|
|
|
22
21
|
truncated: result.stdout.truncated || result.stderr.truncated,
|
|
23
22
|
};
|
|
24
23
|
}
|
|
25
|
-
export function backgroundPrefix() {
|
|
26
|
-
return [quoteShellArg('env'), quoteShellArg('OPENCLI_WINDOW=background')];
|
|
27
|
-
}
|
|
28
|
-
export function backgroundLine(command, argv) {
|
|
29
|
-
return [...backgroundPrefix(), quoteShellArg(command), ...argv.map(quoteShellArg)].join(' ');
|
|
30
|
-
}
|
package/dist/host/spec.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { npmRegistryOf } from './
|
|
1
|
+
import { npmRegistryOf } from './npm-registry.js';
|
|
2
2
|
export function npmSourceOf(sources) {
|
|
3
3
|
return sources?.find((source) => source.kind === 'npm');
|
|
4
4
|
}
|
|
5
5
|
function text(value) {
|
|
6
6
|
return value === undefined ? '' : value.trim();
|
|
7
7
|
}
|
|
8
|
-
function conventionPackage(name) {
|
|
9
|
-
return
|
|
8
|
+
function conventionPackage(name, prefix) {
|
|
9
|
+
return `${prefix}${name}`;
|
|
10
10
|
}
|
|
11
11
|
function nativeSourcePackage(source) {
|
|
12
12
|
if (source.kind === 'npm')
|
|
@@ -15,15 +15,15 @@ function nativeSourcePackage(source) {
|
|
|
15
15
|
return `git:${text(source.url)}`;
|
|
16
16
|
return `local:${text(source.env) || text(source.path)}`;
|
|
17
17
|
}
|
|
18
|
-
function packageOf(need) {
|
|
18
|
+
function packageOf(need, prefix) {
|
|
19
19
|
if (need.kind === 'lib')
|
|
20
20
|
return text(need.name);
|
|
21
21
|
const first = need.sources?.[0];
|
|
22
22
|
if (first === undefined)
|
|
23
|
-
return conventionPackage(need.name);
|
|
23
|
+
return conventionPackage(need.name, prefix);
|
|
24
24
|
if (first.kind === 'npm') {
|
|
25
25
|
const pkg = text(first.package);
|
|
26
|
-
return pkg === '' ? conventionPackage(need.name) : pkg;
|
|
26
|
+
return pkg === '' ? conventionPackage(need.name, prefix) : pkg;
|
|
27
27
|
}
|
|
28
28
|
return nativeSourcePackage(first);
|
|
29
29
|
}
|
|
@@ -107,6 +107,7 @@ function addDeclarer(entry, unit, commands) {
|
|
|
107
107
|
}
|
|
108
108
|
export function buildSupplyIndex(declarations, options = {}) {
|
|
109
109
|
const env = options.env ?? {};
|
|
110
|
+
const prefix = options.packagePrefix ?? '';
|
|
110
111
|
const entries = new Map();
|
|
111
112
|
const byName = new Map();
|
|
112
113
|
const conflicts = [];
|
|
@@ -133,7 +134,7 @@ export function buildSupplyIndex(declarations, options = {}) {
|
|
|
133
134
|
for (const need of declaration.needs ?? []) {
|
|
134
135
|
if (need.kind !== 'extension' && need.kind !== 'lib')
|
|
135
136
|
continue;
|
|
136
|
-
const pkg = packageOf(need);
|
|
137
|
+
const pkg = packageOf(need, prefix);
|
|
137
138
|
const entry = ensure(need.kind, pkg);
|
|
138
139
|
if (!entry.names.includes(need.name))
|
|
139
140
|
entry.names.push(need.name);
|
package/dist/host/supply-port.js
CHANGED
|
@@ -3,20 +3,30 @@ export function supplyPortOf(ctx) {
|
|
|
3
3
|
const set = adaptersOf(ctx);
|
|
4
4
|
const env = set.supply;
|
|
5
5
|
const modules = set.modules;
|
|
6
|
+
const pluginPackagePrefix = modules.pluginPackagePrefix;
|
|
7
|
+
const pluginManifestFile = modules.pluginManifestFile;
|
|
8
|
+
const cliCatalogPath = modules.cliCatalogPath;
|
|
9
|
+
const vendorPluginsDir = modules.vendorPluginsDir;
|
|
10
|
+
const runtimeInstallCommand = modules.runtimeInstallCommand;
|
|
6
11
|
return {
|
|
7
12
|
env,
|
|
8
13
|
modules,
|
|
9
14
|
resolvePluginSource: (source, environment, options) => env.resolvePluginSource(source, environment, options),
|
|
10
15
|
libInstallCommand: (options) => env.libInstallCommand(options),
|
|
16
|
+
libUninstallCommand: (options) => env.libUninstallCommand(options),
|
|
11
17
|
pluginInstallPlan: (options) => env.pluginInstallPlan(options),
|
|
12
18
|
latestVersion: (options) => env.latestVersion(options),
|
|
13
19
|
missingReleaseParts: (options) => env.missingReleaseParts(options),
|
|
14
20
|
probeRelease: (options) => env.probeRelease(options),
|
|
15
21
|
splitNpmSpec: (spec) => env.splitNpmSpec(spec),
|
|
22
|
+
isolatedRoot: () => modules.isolatedRoot(),
|
|
16
23
|
isolatedHome: () => modules.isolatedHome(),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
...(pluginPackagePrefix === undefined ? {} : { pluginPackagePrefix: () => pluginPackagePrefix() }),
|
|
25
|
+
...(pluginManifestFile === undefined ? {} : { pluginManifestFile: () => pluginManifestFile() }),
|
|
26
|
+
...(cliCatalogPath === undefined ? {} : { cliCatalogPath: () => cliCatalogPath() }),
|
|
27
|
+
...(vendorPluginsDir === undefined ? {} : { vendorPluginsDir: () => vendorPluginsDir() }),
|
|
28
|
+
...(runtimeInstallCommand === undefined ? {} : { runtimeInstallCommand: () => runtimeInstallCommand() }),
|
|
29
|
+
afterLibInstall: () => modules.afterLibInstall(),
|
|
20
30
|
profileDirOf: (context) => modules.profileDirOf(context),
|
|
21
31
|
profileModules: (dir) => modules.profileModules(dir),
|
|
22
32
|
readInstalledModule: (dir, pkg) => modules.readInstalledModule(dir, pkg),
|
package/dist/host/unit-face.d.ts
CHANGED
|
@@ -11,11 +11,12 @@ import type { DataReader } from '../contract/data.js';
|
|
|
11
11
|
import type { LibReader } from '../contract/lib.js';
|
|
12
12
|
import type { GitReader } from '../contract/git.js';
|
|
13
13
|
import type { CommandReader } from '../contract/command.js';
|
|
14
|
+
import type { HostKit } from './host-kit.js';
|
|
14
15
|
export interface ToolScopeContext {
|
|
15
16
|
readonly workspace: string | null;
|
|
16
17
|
readonly preset: string | null;
|
|
17
18
|
}
|
|
18
|
-
export interface UnitMountDeps {
|
|
19
|
+
export interface UnitMountDeps extends HostKit {
|
|
19
20
|
readonly manifest: UnitManifest;
|
|
20
21
|
readonly ctx: DshHostContext;
|
|
21
22
|
readonly logger?: {
|
package/dist/host/version.js
CHANGED
|
@@ -17,11 +17,16 @@ export function isNewerVersion(latest, installed) {
|
|
|
17
17
|
return compared === undefined ? true : compared > 0;
|
|
18
18
|
}
|
|
19
19
|
export function runningVersionOf(moduleUrl) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
for (const depth of ['../../package.json', '../package.json']) {
|
|
21
|
+
try {
|
|
22
|
+
const read = JSON.parse(readFileSync(new URL(depth, moduleUrl), 'utf8'));
|
|
23
|
+
if (typeof read.name !== 'string' || !read.name.startsWith('@dsh-workbench/'))
|
|
24
|
+
continue;
|
|
25
|
+
return typeof read.version === 'string' && read.version !== '' ? read.version : undefined;
|
|
26
|
+
}
|
|
27
|
+
catch {
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
26
30
|
}
|
|
31
|
+
return undefined;
|
|
27
32
|
}
|
package/dist/host.d.ts
CHANGED
|
@@ -19,6 +19,21 @@ export * from './lib/git-address.js';
|
|
|
19
19
|
export * from './api/blocker-table.js';
|
|
20
20
|
export * from './contract/unit-declaration.js';
|
|
21
21
|
export * from './host/board-fact.js';
|
|
22
|
+
export * from './host/bundle-manager.js';
|
|
23
|
+
export * from './host/installed-module.js';
|
|
24
|
+
export * from './host/local-declaration.js';
|
|
25
|
+
export * from './host/registry-declaration.js';
|
|
26
|
+
export * from './host/release-probe.js';
|
|
27
|
+
export * from './host/package-kind.js';
|
|
28
|
+
export * from './host/package-content.js';
|
|
29
|
+
export * from './host/package-route.js';
|
|
30
|
+
export * from './host/lib-install.js';
|
|
31
|
+
export * from './host/module-root.js';
|
|
32
|
+
export * from './host/dsh-plugins.js';
|
|
33
|
+
export * from './host/profile-registries.js';
|
|
34
|
+
export * from './host/host-actions.js';
|
|
35
|
+
export { configSyncAction, configSyncApply, configSyncHandler, configSyncSnapshot, mergeBlocks, normalizeBlock, readPatchBlocks, syncRows, type ConfigSyncDeps, } from './host/config-sync.js';
|
|
36
|
+
export * from './host/profile-create.js';
|
|
22
37
|
export * from './host/context-ref.js';
|
|
23
38
|
export * from './host/diy-debug.js';
|
|
24
39
|
export * from './host/diy-record.js';
|
|
@@ -27,6 +42,12 @@ export * from './host/git.js';
|
|
|
27
42
|
export * from './host/http.js';
|
|
28
43
|
export * from './host/lib-capabilities.js';
|
|
29
44
|
export * from './host/long-task.js';
|
|
45
|
+
export * from './host/flow/types.js';
|
|
46
|
+
export * from './host/flow/expr.js';
|
|
47
|
+
export * from './host/flow/check.js';
|
|
48
|
+
export * from './host/flow/run.js';
|
|
49
|
+
export * from './host/flow/kit.js';
|
|
50
|
+
export * from './host/host-kit.js';
|
|
30
51
|
export * from './host/panel-state.js';
|
|
31
52
|
export * from './host/plugin-ledger.js';
|
|
32
53
|
export * from './host/time.js';
|
|
@@ -34,7 +55,6 @@ export * from './host/tokens.js';
|
|
|
34
55
|
export * from './host/tool-approval.js';
|
|
35
56
|
export * from './host/tool-kit.js';
|
|
36
57
|
export * from './host/unit-face.js';
|
|
37
|
-
export * from './host/opencli-runner.js';
|
|
38
58
|
export * from './host/lib-runners.js';
|
|
39
59
|
export * from './host/value-handoff.js';
|
|
40
60
|
export * from './host/workspace-store.js';
|
|
@@ -45,9 +65,7 @@ export * from './host/shell-text.js';
|
|
|
45
65
|
export * from './host/shell.js';
|
|
46
66
|
export * from './host/data-error.js';
|
|
47
67
|
export * from './host/install-failure.js';
|
|
48
|
-
export * from './host/runtime-links.js';
|
|
49
68
|
export * from './host/provision.js';
|
|
50
|
-
export * from './host/channel-plugin.js';
|
|
51
69
|
export * from './host/recipe.js';
|
|
52
70
|
export * from './host/recipe-rules.js';
|
|
53
71
|
export * from './host/release-packages.generated.js';
|
|
@@ -55,7 +73,6 @@ export * from './contract/unit-capability.js';
|
|
|
55
73
|
export * from './contract/plugin-source.js';
|
|
56
74
|
export * from './contract/cli.js';
|
|
57
75
|
export * from './host/cli.js';
|
|
58
|
-
export * from './host/command-name.js';
|
|
59
76
|
export * from './host/browser.js';
|
|
60
77
|
export * from './host/preflight.js';
|
|
61
78
|
export * from './host/platform.js';
|
|
@@ -66,8 +83,8 @@ export * from './host/adapter-types.js';
|
|
|
66
83
|
export * from './host/paths.js';
|
|
67
84
|
export * from './host/plugin.js';
|
|
68
85
|
export * from './host/spec.js';
|
|
69
|
-
export
|
|
70
|
-
export * from './host/
|
|
86
|
+
export type { PluginSourceCommand, PluginSourceOptions, ResolvedPluginSource } from './contract/plugin-source.js';
|
|
87
|
+
export * from './host/npm-registry.js';
|
|
71
88
|
export * from './host/supply-index.js';
|
|
72
89
|
export * from './host/patch.js';
|
|
73
90
|
export * from './host/adapters.js';
|
|
@@ -75,6 +92,7 @@ export * from './host/adapter-set.js';
|
|
|
75
92
|
export * from './host/needs.js';
|
|
76
93
|
export * from './host/extension.js';
|
|
77
94
|
export * from './host/port-types.js';
|
|
95
|
+
export * from './host/adapter-contract.js';
|
|
78
96
|
export * from './host/version-range.js';
|
|
79
97
|
export * from './host/market-index.js';
|
|
80
98
|
export * from './host/market-index-claim.js';
|
package/dist/host.js
CHANGED
|
@@ -19,6 +19,21 @@ export * from './lib/git-address.js';
|
|
|
19
19
|
export * from './api/blocker-table.js';
|
|
20
20
|
export * from './contract/unit-declaration.js';
|
|
21
21
|
export * from './host/board-fact.js';
|
|
22
|
+
export * from './host/bundle-manager.js';
|
|
23
|
+
export * from './host/installed-module.js';
|
|
24
|
+
export * from './host/local-declaration.js';
|
|
25
|
+
export * from './host/registry-declaration.js';
|
|
26
|
+
export * from './host/release-probe.js';
|
|
27
|
+
export * from './host/package-kind.js';
|
|
28
|
+
export * from './host/package-content.js';
|
|
29
|
+
export * from './host/package-route.js';
|
|
30
|
+
export * from './host/lib-install.js';
|
|
31
|
+
export * from './host/module-root.js';
|
|
32
|
+
export * from './host/dsh-plugins.js';
|
|
33
|
+
export * from './host/profile-registries.js';
|
|
34
|
+
export * from './host/host-actions.js';
|
|
35
|
+
export { configSyncAction, configSyncApply, configSyncHandler, configSyncSnapshot, mergeBlocks, normalizeBlock, readPatchBlocks, syncRows, } from './host/config-sync.js';
|
|
36
|
+
export * from './host/profile-create.js';
|
|
22
37
|
export * from './host/context-ref.js';
|
|
23
38
|
export * from './host/diy-debug.js';
|
|
24
39
|
export * from './host/diy-record.js';
|
|
@@ -27,6 +42,12 @@ export * from './host/git.js';
|
|
|
27
42
|
export * from './host/http.js';
|
|
28
43
|
export * from './host/lib-capabilities.js';
|
|
29
44
|
export * from './host/long-task.js';
|
|
45
|
+
export * from './host/flow/types.js';
|
|
46
|
+
export * from './host/flow/expr.js';
|
|
47
|
+
export * from './host/flow/check.js';
|
|
48
|
+
export * from './host/flow/run.js';
|
|
49
|
+
export * from './host/flow/kit.js';
|
|
50
|
+
export * from './host/host-kit.js';
|
|
30
51
|
export * from './host/panel-state.js';
|
|
31
52
|
export * from './host/plugin-ledger.js';
|
|
32
53
|
export * from './host/time.js';
|
|
@@ -34,7 +55,6 @@ export * from './host/tokens.js';
|
|
|
34
55
|
export * from './host/tool-approval.js';
|
|
35
56
|
export * from './host/tool-kit.js';
|
|
36
57
|
export * from './host/unit-face.js';
|
|
37
|
-
export * from './host/opencli-runner.js';
|
|
38
58
|
export * from './host/lib-runners.js';
|
|
39
59
|
export * from './host/value-handoff.js';
|
|
40
60
|
export * from './host/workspace-store.js';
|
|
@@ -45,9 +65,7 @@ export * from './host/shell-text.js';
|
|
|
45
65
|
export * from './host/shell.js';
|
|
46
66
|
export * from './host/data-error.js';
|
|
47
67
|
export * from './host/install-failure.js';
|
|
48
|
-
export * from './host/runtime-links.js';
|
|
49
68
|
export * from './host/provision.js';
|
|
50
|
-
export * from './host/channel-plugin.js';
|
|
51
69
|
export * from './host/recipe.js';
|
|
52
70
|
export * from './host/recipe-rules.js';
|
|
53
71
|
export * from './host/release-packages.generated.js';
|
|
@@ -55,7 +73,6 @@ export * from './contract/unit-capability.js';
|
|
|
55
73
|
export * from './contract/plugin-source.js';
|
|
56
74
|
export * from './contract/cli.js';
|
|
57
75
|
export * from './host/cli.js';
|
|
58
|
-
export * from './host/command-name.js';
|
|
59
76
|
export * from './host/browser.js';
|
|
60
77
|
export * from './host/preflight.js';
|
|
61
78
|
export * from './host/platform.js';
|
|
@@ -66,8 +83,7 @@ export * from './host/adapter-types.js';
|
|
|
66
83
|
export * from './host/paths.js';
|
|
67
84
|
export * from './host/plugin.js';
|
|
68
85
|
export * from './host/spec.js';
|
|
69
|
-
export * from './host/
|
|
70
|
-
export * from './host/lib-install.js';
|
|
86
|
+
export * from './host/npm-registry.js';
|
|
71
87
|
export * from './host/supply-index.js';
|
|
72
88
|
export * from './host/patch.js';
|
|
73
89
|
export * from './host/adapters.js';
|
|
@@ -75,6 +91,7 @@ export * from './host/adapter-set.js';
|
|
|
75
91
|
export * from './host/needs.js';
|
|
76
92
|
export * from './host/extension.js';
|
|
77
93
|
export * from './host/port-types.js';
|
|
94
|
+
export * from './host/adapter-contract.js';
|
|
78
95
|
export * from './host/version-range.js';
|
|
79
96
|
export * from './host/market-index.js';
|
|
80
97
|
export * from './host/market-index-claim.js';
|
package/dist/i18n/en.js
CHANGED
|
@@ -74,7 +74,11 @@ export const en = {
|
|
|
74
74
|
'time.short.years': '{n}y',
|
|
75
75
|
'panels.title': 'Panel modules',
|
|
76
76
|
'panels.groupBoardless': 'No-board modules',
|
|
77
|
-
'panels.groupPlugins': '
|
|
77
|
+
'panels.groupPlugins': 'Plugins',
|
|
78
|
+
'runtime.plugin': 'plugin',
|
|
79
|
+
'runtime.pluginOf': 'a plugin the runtime provides',
|
|
80
|
+
'runtime.pluginThing': 'a plugin',
|
|
81
|
+
'runtime.pluginArea': 'the plugin area',
|
|
78
82
|
'panels.market.defaultHint': 'When on, it is on by default in every workspace; you can also turn it off for a single workspace in Panel setup.',
|
|
79
83
|
'panels.market.defaultLabel': 'On by default everywhere',
|
|
80
84
|
'panels.market.defaultLocked': 'Unusable right now — update or uninstall it first',
|
|
@@ -152,9 +156,6 @@ export const en = {
|
|
|
152
156
|
'panels.market.confirmNo': 'Cancel',
|
|
153
157
|
'panels.market.noMarketSource': 'The index has no newer version of this module (refresh the index and retry)',
|
|
154
158
|
'panels.market.failed': 'Failed: {reason}',
|
|
155
|
-
'panels.market.askAgent': 'Ask the agent',
|
|
156
|
-
'panels.market.askAgentCopied': 'Copied',
|
|
157
|
-
'panels.market.askAgentText': 'This workbench module cannot be used: "{name}" (unit {unit}) — {reason}. Work out what is missing and how to add it, then confirm it works.',
|
|
158
159
|
'panels.market.failure.permission': "Didn't install: no write access",
|
|
159
160
|
'panels.market.failure.diskFull': "Didn't install: the disk is full",
|
|
160
161
|
'panels.market.failure.sandbox': "Didn't install: the system blocked it",
|
|
@@ -194,7 +195,7 @@ export const en = {
|
|
|
194
195
|
'panels.market.noSource': 'This module declares no install method — install it yourself',
|
|
195
196
|
'panels.market.badSource': 'The install method is incomplete — install it yourself',
|
|
196
197
|
'panels.market.empty': 'No modules available',
|
|
197
|
-
'panels.market.sectionPlugins': 'Installed
|
|
198
|
+
'panels.market.sectionPlugins': 'Installed plugins',
|
|
198
199
|
'panels.market.moduleOutdated': 'update available',
|
|
199
200
|
'panels.market.updateNeedsWorkbench': 'this version needs a newer workbench first',
|
|
200
201
|
'panels.market.updateIncompatible': 'the new version does not match this workbench, so it cannot be installed now',
|
|
@@ -232,7 +233,7 @@ export const en = {
|
|
|
232
233
|
'panels.market.justNow': 'just now',
|
|
233
234
|
'panels.market.minutesAgo': '{n} min ago',
|
|
234
235
|
'panels.market.hoursAgo': '{n} h ago',
|
|
235
|
-
"panels.market.add.description": "Enter a module or
|
|
236
|
+
"panels.market.add.description": "Enter a module or {plugin} package name, Git repository URL, or local directory path.",
|
|
236
237
|
'panels.market.add.specPlaceholder': 'e.g. @dsh-workbench/module-hello',
|
|
237
238
|
'panels.market.add.guideToggle': 'Install guide and examples',
|
|
238
239
|
'panels.market.add.guideHide': 'Hide guide',
|
|
@@ -271,12 +272,12 @@ export const en = {
|
|
|
271
272
|
'panels.market.add.problemInstalled': 'This module is already installed (add @version to switch versions)',
|
|
272
273
|
'panels.market.add.problemNotFound': 'No such module found',
|
|
273
274
|
'panels.market.add.problemNotPackage': 'That path does not exist or is not a valid module package',
|
|
274
|
-
'panels.market.add.problemNotBundle': 'This package cannot be installed here: {reason}. This entry recognises workbench modules and
|
|
275
|
+
'panels.market.add.problemNotBundle': 'This package cannot be installed here: {reason}. This entry recognises workbench modules and {plugin}s by package name, and installs either; but a git URL or a tarball does not reveal what it is — if it is really one of those two, use its package name or a local folder instead.',
|
|
275
276
|
'panels.market.add.problemNotWorkbenchModule': 'This package does not match the workbench you are running, so installing it would not work. Pick another version, or ask the module author.',
|
|
276
|
-
'panels.market.add.problemNotModuleOrPlugin': 'This package is neither a workbench module nor
|
|
277
|
-
'panels.market.add.failureNotModuleOrPlugin': 'This package is neither a workbench module nor
|
|
278
|
-
'panels.market.add.installedPlugin': 'Installed:
|
|
279
|
-
'panels.market.add.pluginPreview': 'This is
|
|
277
|
+
'panels.market.add.problemNotModuleOrPlugin': 'This package is neither a workbench module nor {pluginOf}, so installing it would do nothing. Pick another version, or ask the package author.',
|
|
278
|
+
'panels.market.add.failureNotModuleOrPlugin': 'This package is neither a workbench module nor {pluginOf}, so installing it would do nothing',
|
|
279
|
+
'panels.market.add.installedPlugin': 'Installed: {plugin} {name}',
|
|
280
|
+
'panels.market.add.pluginPreview': 'This is {pluginThing}: it goes into {pluginArea} and works as soon as it is installed — no restart.',
|
|
280
281
|
'panels.market.add.pluginAlias': 'Plugin name: {name}',
|
|
281
282
|
'panels.market.add.problemNetwork': 'Cannot reach the module source; check the network and retry',
|
|
282
283
|
'panels.market.add.problemUnknown': 'Cannot fetch module information: {reason}',
|
|
@@ -366,6 +367,7 @@ export const en = {
|
|
|
366
367
|
'panels.discover.noSourceHint': 'Add a module market index (http address or git repository) to browse and install its modules here',
|
|
367
368
|
'panels.discover.sourcesFailed': 'Could not read the index sources.',
|
|
368
369
|
'panels.discover.unreadable': 'Could not read this index.',
|
|
370
|
+
'panels.discover.sandbox': 'Blocked by the system: this profile does not allow the workbench to write its own cache directory.',
|
|
369
371
|
'panels.discover.sourceAuth': 'This index source could not be read: this machine has no git credentials for it. Set up credentials (or switch the source to its SSH address), then refresh.',
|
|
370
372
|
'panels.discover.invalid': 'This index is not in a valid format.',
|
|
371
373
|
'panels.discover.emptyRepo': 'This repository has no commits yet.',
|
|
@@ -552,7 +554,7 @@ export const en = {
|
|
|
552
554
|
'blocker.forbidden.hint': 'You are signed in, but this project/repo is not permitted for your account.',
|
|
553
555
|
'blocker.forbidden.open': 'Open permissions page',
|
|
554
556
|
'blocker.timeout.hint': 'The background browser may not have started; retrying usually helps.',
|
|
555
|
-
'blocker.exec.hint': 'Make sure
|
|
557
|
+
'blocker.exec.hint': 'Make sure the runtime is installed and runs from your terminal.',
|
|
556
558
|
'blocker.unknown.title': 'Something went wrong',
|
|
557
559
|
'panels.reading': 'Reading the panel setup…',
|
|
558
560
|
'panels.cardBroken': 'This module will not render: {unit} ({reason})',
|
|
@@ -562,6 +564,7 @@ export const en = {
|
|
|
562
564
|
'env.title': 'Preparing the workbench',
|
|
563
565
|
'env.checking': 'Getting the runtime ready…',
|
|
564
566
|
'env.installing': 'Installing background tools — the first run takes a moment…',
|
|
567
|
+
'env.installingToolchain': 'Installing the workbench’s own npm / pnpm — the first run downloads them, so it can take a while.',
|
|
565
568
|
'env.failed': 'One step away',
|
|
566
569
|
'env.elapsed': 'Waiting {seconds}s',
|
|
567
570
|
'env.stepFailed.install': 'install failed',
|
|
@@ -569,16 +572,11 @@ export const en = {
|
|
|
569
572
|
'env.stepFailed.shell': 'cannot reach the command line',
|
|
570
573
|
'env.toolchain.ok': 'Looks good',
|
|
571
574
|
'env.toolchain.warn': 'Almost ready',
|
|
572
|
-
'env.
|
|
575
|
+
'env.runtime.ok': 'Ready',
|
|
573
576
|
'env.bridge.ok': 'Connected',
|
|
574
577
|
'env.bridge.short': 'Not connected yet',
|
|
575
578
|
'env.bridge.why': 'Panel data uses the login state in your browser. Without this connection, modules cannot fetch data. It does not block startup: fix it, or enter the workbench first.',
|
|
576
579
|
'env.bridge.hold': 'The browser is not connected yet \u2014 fix it below and hit Retry, or enter the workbench first.',
|
|
577
|
-
'env.bridge.daemon': 'The background service is not running. It usually starts by itself \u2014 run the command below in your terminal first.',
|
|
578
|
-
'env.bridge.extension': 'The browser extension is not connected. Make sure the browser is running and the extension is enabled; install it once from the store if needed (then hit Retry here).',
|
|
579
|
-
'env.bridge.extensionLink': 'Get the extension in the Chrome Web Store',
|
|
580
|
-
'env.bridge.profile': 'Several browser accounts are connected but none is the default: list them (command below), then pick one.',
|
|
581
|
-
'env.bridge.stale': 'The default browser account is stale (it names an extension instance that no longer exists): pick one again.',
|
|
582
580
|
'env.bridge.unknown': 'Could not tell what went wrong. Expand the raw output and follow the steps in it.',
|
|
583
581
|
'env.fix.title': 'How to fix it',
|
|
584
582
|
'env.fix.why': 'The workbench uses its own background tool (installed separately from the one in your terminal), and it is not set up on this machine yet.',
|
|
@@ -607,13 +605,14 @@ export const en = {
|
|
|
607
605
|
'env.diy.continue': 'Enter the workbench anyway',
|
|
608
606
|
'env.copyCommand': 'Copy command',
|
|
609
607
|
'env.copied': 'Copied',
|
|
610
|
-
'env.step.toolchain': '
|
|
611
|
-
'env.step.
|
|
612
|
-
'env.step.
|
|
613
|
-
'env.step.
|
|
614
|
-
'env.step.
|
|
608
|
+
'env.step.toolchain': 'Check the environment',
|
|
609
|
+
'env.step.adapter': 'Check the runtime',
|
|
610
|
+
'env.step.runtime': 'Install background tools',
|
|
611
|
+
'env.step.bridge': 'Connect your browser',
|
|
612
|
+
'env.step.diy': 'Check DIY mode',
|
|
613
|
+
'env.step.warm': 'Reach your sites',
|
|
615
614
|
'env.warm.done': 'Ready ({n} sites)',
|
|
616
|
-
'env.warm.short': 'Could not
|
|
615
|
+
'env.warm.short': 'Could not reach your sites early this time \u2014 nothing breaks; the first read fills it in',
|
|
617
616
|
'env.unit.failed': 'This module cannot start',
|
|
618
617
|
'env.unit.failedHint': 'It failed while starting up; other modules are unaffected.',
|
|
619
618
|
'env.unit.unchecked': 'Cannot check: no command line',
|