@oomol-lab/open-flow 0.1.0-beta.60 → 0.1.0-beta.61

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/README.md CHANGED
@@ -28,4 +28,17 @@ Hosts can render `OpenFlowSessionGate` before authentication to keep login, retr
28
28
 
29
29
  Deployment chrome can import `@oomol-lab/open-flow/theme.css` and apply `open-flow-theme` plus `data-theme` to its root.
30
30
 
31
- The Open Flow command and hosted Workbench applications are distributed separately.
31
+ Embed the CLI in a Bun host through the explicit command subpath:
32
+
33
+ ```ts
34
+ import { runOpenFlowCommand, type OpenFlowCommandHost } from '@oomol-lab/open-flow/command'
35
+
36
+ const exitCode = await runOpenFlowCommand(args, { cloudRequest, getWorkbenchUrl, language: 'en' })
37
+ ```
38
+
39
+ Pass arguments after the host's `oo flow` prefix. The host supplies authenticated
40
+ Control API requests and Workbench URLs, and handles the returned exit code.
41
+ The command uses process stdin/stdout/stderr and targets Bun 1.4.2 or newer.
42
+ Importing it does not execute the CLI. Bundle it into the host at build time;
43
+ runtime dependencies and the package version are included in the command entry.
44
+ Skill templates ship in this same package under `skills/open-flow/`.
@@ -1,6 +1,6 @@
1
1
  import { l as useTranslate } from "./dist-BFmpkX4P.js";
2
- import { C as FieldDescription, E as FieldLabel, S as Field, T as FieldGroup, c as DialogTitle, i as DialogContent, n as Dialog, o as DialogFooter, or as Input, r as DialogClose, s as DialogHeader, t as Icon, vi as Button, w as FieldError, x as Spinner } from "./icons-D70mz3qW.js";
3
- import { t as WorkbenchSelect } from "./workbenchSelect-gB45mZY7.js";
2
+ import { C as FieldDescription, E as FieldLabel, S as Field, T as FieldGroup, c as DialogTitle, i as DialogContent, n as Dialog, o as DialogFooter, or as Input, r as DialogClose, s as DialogHeader, t as Icon, vi as Button, w as FieldError, x as Spinner } from "./icons-DVJvrj1H.js";
3
+ import { t as WorkbenchSelect } from "./workbenchSelect-cr4-mKq3.js";
4
4
  import { useEffect, useRef, useState } from "react";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
6
  //#region src/workbench/browser/runtime/shell/createResourceDialog.tsx