@dsh-workbench/adapters-default 1.4.0-beta.0 → 1.4.0-rc.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.
@@ -2,8 +2,8 @@ import { existsSync } from 'node:fs';
2
2
  import { dirname, join } from 'node:path';
3
3
  import { packageRootOf, seamOf } from '@dsh-workbench/shared/host';
4
4
  import { backgroundLine, libsBinDir } from '@dsh-workbench/adapter-runtime';
5
- import { lastBridgeFacts, rememberFrontApp, restoreFocus } from '@dsh-workbench/adapter-probe';
6
- import { ensureLibsOpencliPeer, ensureVendorOpencliPeer, opencliCommandOf, opencliHandshakeOk, opencliHandshakeNote, opencliHandshakeText, opencliRunnerOf, opencliVersionReport, } from '@dsh-workbench/adapter-runtime';
5
+ import { lastBridgeFacts, raiseBrowser, rememberFrontApp, restoreFocus } from '@dsh-workbench/adapter-probe';
6
+ import { ensureLibsOpencliPeer, ensureVendorOpencliPeer, opencliBrowserCaptureOf, installedOpencliVersion, opencliResultOf, sessionDialectOf, opencliCommandOf, opencliHandshakeOk, opencliHandshakeNote, opencliHandshakeText, opencliRunnerOf, opencliVersionReport, } from '@dsh-workbench/adapter-runtime';
7
7
  import { isInstalledCopy, prependPath, runDetached, runtimeSeedPaths, runtimeSeedRootOf, seedRuntimeFiles, seedWorkbenchToolchain, workshopSeedPlan, } from '@dsh-workbench/adapter-probe';
8
8
  export function runtimePathDirs(paths) {
9
9
  return [paths.opencliBinDir, libsBinDir(), paths.entryDir];
@@ -93,7 +93,9 @@ export function createRuntimePort() {
93
93
  invoke: (site, command) => command === undefined || command === '' ? `opencli ${site}` : `opencli ${site} ${command}`,
94
94
  help: (site) => `opencli ${site} --help`,
95
95
  browser: (verb) => `opencli browser ${verb.join(' ')}`,
96
- background: (command, argv) => backgroundLine(command, argv),
96
+ commandResult: (stdout) => opencliResultOf(stdout),
97
+ browserCapture: (text) => opencliBrowserCaptureOf(text),
98
+ background: (command, argv) => backgroundLine(command, argv, { dialect: sessionDialectOf(installedOpencliVersion()) }),
97
99
  authorHint: 'opencli skills read opencli-adapter-author',
98
100
  };
99
101
  },
@@ -135,6 +137,10 @@ export function createRuntimePort() {
135
137
  const seam = seamOf(ctx);
136
138
  return seam === undefined ? false : restoreFocus(seam, opencliCommandOf(ctx).command, app);
137
139
  },
140
+ async raiseBrowser(ctx) {
141
+ const seam = seamOf(ctx);
142
+ return seam === undefined ? false : raiseBrowser(seam);
143
+ },
138
144
  seed(ctx, options) {
139
145
  const root = runtimeSeedRootOf(ctx);
140
146
  if (root === null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsh-workbench/adapters-default",
3
- "version": "1.4.0-beta.0",
3
+ "version": "1.4.0-rc.0",
4
4
  "description": "Default host adapter set installed with @dsh-workbench/core.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -13,11 +13,11 @@
13
13
  "dist"
14
14
  ],
15
15
  "dependencies": {
16
- "@dsh-workbench/adapter-probe": "1.4.0-beta.0",
17
- "@dsh-workbench/adapter-profile": "1.4.0-beta.0",
18
- "@dsh-workbench/adapter-supply": "1.4.0-beta.0",
19
- "@dsh-workbench/adapter-runtime": "1.4.0-beta.0",
20
- "@dsh-workbench/shared": "1.4.0-beta.0"
16
+ "@dsh-workbench/adapter-probe": "1.4.0-rc.0",
17
+ "@dsh-workbench/adapter-runtime": "1.4.0-rc.0",
18
+ "@dsh-workbench/adapter-profile": "1.4.0-rc.0",
19
+ "@dsh-workbench/shared": "1.4.0-rc.0",
20
+ "@dsh-workbench/adapter-supply": "1.4.0-rc.0"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "public"