agent-web-os 0.2.0 → 0.3.0-beta.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/README.md +2 -3
- package/README.zh-CN.md +2 -3
- package/dist/almostnode-session-NGSXCNAV.js +2102 -0
- package/dist/almostnode-session-NGSXCNAV.js.map +1 -0
- package/dist/chunk-I6U7BPDH.js +75192 -0
- package/dist/chunk-I6U7BPDH.js.map +1 -0
- package/dist/index.cjs +74855 -59051
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +435 -56559
- package/dist/index.js.map +1 -1
- package/dist/pyodide-session-I7LP2GQO.js +348 -0
- package/dist/pyodide-session-I7LP2GQO.js.map +1 -0
- package/package.json +1 -1
- package/dist/chunk-QV36H6BY.js +0 -5325
- package/dist/chunk-QV36H6BY.js.map +0 -1
- package/dist/npm-C6N7BGOG.js +0 -14
- package/dist/npm-C6N7BGOG.js.map +0 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Install `agent-web-os`, create a session in the browser, and execute commands fr
|
|
|
20
20
|
```ts
|
|
21
21
|
import { createBrowserBashSession, executeBrowserBash } from "agent-web-os"
|
|
22
22
|
|
|
23
|
-
const session = createBrowserBashSession({ rootPath: "/workspace" })
|
|
23
|
+
const session = createBrowserBashSession({ rootPath: "/workspace", node: true, python: true })
|
|
24
24
|
|
|
25
25
|
export async function runAgentWebOsDemo() {
|
|
26
26
|
const result = await executeBrowserBash(session, "node --version")
|
|
@@ -45,7 +45,7 @@ import { FitAddon } from "@xterm/addon-fit"
|
|
|
45
45
|
import "@xterm/xterm/css/xterm.css"
|
|
46
46
|
import { createBrowserBashSession, executeBrowserBash } from "agent-web-os"
|
|
47
47
|
|
|
48
|
-
const session = createBrowserBashSession({ rootPath: "/workspace" })
|
|
48
|
+
const session = createBrowserBashSession({ rootPath: "/workspace", node: true, python: true })
|
|
49
49
|
const terminal = new Terminal({ convertEol: true, cursorBlink: true })
|
|
50
50
|
const fitAddon = new FitAddon()
|
|
51
51
|
|
|
@@ -53,7 +53,6 @@ terminal.loadAddon(fitAddon)
|
|
|
53
53
|
terminal.open(container)
|
|
54
54
|
fitAddon.fit()
|
|
55
55
|
|
|
56
|
-
void executeBrowserBash(session, "python --version")
|
|
57
56
|
session.setStdoutWriter((data) => terminal.write(data))
|
|
58
57
|
session.setTerminalSize(terminal.cols, terminal.rows)
|
|
59
58
|
|
package/README.zh-CN.md
CHANGED
|
@@ -20,7 +20,7 @@ yarn add agent-web-os
|
|
|
20
20
|
```ts
|
|
21
21
|
import { createBrowserBashSession, executeBrowserBash } from "agent-web-os"
|
|
22
22
|
|
|
23
|
-
const session = createBrowserBashSession({ rootPath: "/workspace" })
|
|
23
|
+
const session = createBrowserBashSession({ rootPath: "/workspace", node: true, python: true })
|
|
24
24
|
|
|
25
25
|
export async function runAgentWebOsDemo() {
|
|
26
26
|
const result = await executeBrowserBash(session, "node --version")
|
|
@@ -45,7 +45,7 @@ import { FitAddon } from "@xterm/addon-fit"
|
|
|
45
45
|
import "@xterm/xterm/css/xterm.css"
|
|
46
46
|
import { createBrowserBashSession, executeBrowserBash } from "agent-web-os"
|
|
47
47
|
|
|
48
|
-
const session = createBrowserBashSession({ rootPath: "/workspace" })
|
|
48
|
+
const session = createBrowserBashSession({ rootPath: "/workspace", node: true, python: true })
|
|
49
49
|
const terminal = new Terminal({ convertEol: true, cursorBlink: true })
|
|
50
50
|
const fitAddon = new FitAddon()
|
|
51
51
|
|
|
@@ -53,7 +53,6 @@ terminal.loadAddon(fitAddon)
|
|
|
53
53
|
terminal.open(container)
|
|
54
54
|
fitAddon.fit()
|
|
55
55
|
|
|
56
|
-
void executeBrowserBash(session, "python --version")
|
|
57
56
|
session.setStdoutWriter((data) => terminal.write(data))
|
|
58
57
|
session.setTerminalSize(terminal.cols, terminal.rows)
|
|
59
58
|
|