agent-web-os 0.1.8 → 0.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/index.cjs +16 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +16 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6018,6 +6018,7 @@ var init_index_web = __esm({
|
|
|
6018
6018
|
// src/index.ts
|
|
6019
6019
|
var index_exports = {};
|
|
6020
6020
|
__export(index_exports, {
|
|
6021
|
+
AGENT_WEB_OS_VERSION: () => AGENT_WEB_OS_VERSION,
|
|
6021
6022
|
AlmostNodeSession: () => AlmostNodeSession,
|
|
6022
6023
|
Bash: () => Ju,
|
|
6023
6024
|
DEFAULT_BASH_SHELL_ENV: () => DEFAULT_BASH_SHELL_ENV,
|
|
@@ -60706,6 +60707,7 @@ var AlmostNodeSession = class {
|
|
|
60706
60707
|
registeredBinCommands = /* @__PURE__ */ new Set();
|
|
60707
60708
|
binCommandRegistrar;
|
|
60708
60709
|
batchFileLoader;
|
|
60710
|
+
stdoutWriter;
|
|
60709
60711
|
viteServer;
|
|
60710
60712
|
vitePort = null;
|
|
60711
60713
|
vitePreviewUrl = null;
|
|
@@ -60722,6 +60724,9 @@ var AlmostNodeSession = class {
|
|
|
60722
60724
|
setBatchFileLoader(loader) {
|
|
60723
60725
|
this.batchFileLoader = loader;
|
|
60724
60726
|
}
|
|
60727
|
+
setStdoutWriter(writer) {
|
|
60728
|
+
this.stdoutWriter = writer;
|
|
60729
|
+
}
|
|
60725
60730
|
setVitePreviewListener(listener) {
|
|
60726
60731
|
this.vitePreviewListener = listener;
|
|
60727
60732
|
listener?.(this.vitePreviewUrl);
|
|
@@ -61659,8 +61664,10 @@ var AlmostNodeSession = class {
|
|
|
61659
61664
|
const installResult = await packageManager.install(packageSpec, {
|
|
61660
61665
|
save: true,
|
|
61661
61666
|
onProgress: (message) => {
|
|
61662
|
-
|
|
61667
|
+
const line = `${message}
|
|
61663
61668
|
`;
|
|
61669
|
+
stdout += line;
|
|
61670
|
+
this.stdoutWriter?.(line);
|
|
61664
61671
|
}
|
|
61665
61672
|
});
|
|
61666
61673
|
stdout += `added ${installResult.added.length} packages
|
|
@@ -61687,8 +61694,10 @@ var AlmostNodeSession = class {
|
|
|
61687
61694
|
if (packageSpecs.length === 0) {
|
|
61688
61695
|
const installResult = await packageManager.installFromPackageJson({
|
|
61689
61696
|
onProgress: (message) => {
|
|
61690
|
-
|
|
61697
|
+
const line = `${message}
|
|
61691
61698
|
`;
|
|
61699
|
+
stdout += line;
|
|
61700
|
+
this.stdoutWriter?.(line);
|
|
61692
61701
|
}
|
|
61693
61702
|
});
|
|
61694
61703
|
stdout += `added ${installResult.added.length} packages
|
|
@@ -61698,8 +61707,10 @@ var AlmostNodeSession = class {
|
|
|
61698
61707
|
const installResult = await packageManager.install(packageSpec, {
|
|
61699
61708
|
save: true,
|
|
61700
61709
|
onProgress: (message) => {
|
|
61701
|
-
|
|
61710
|
+
const line = `${message}
|
|
61702
61711
|
`;
|
|
61712
|
+
stdout += line;
|
|
61713
|
+
this.stdoutWriter?.(line);
|
|
61703
61714
|
}
|
|
61704
61715
|
});
|
|
61705
61716
|
stdout += `added ${installResult.added.length} packages
|
|
@@ -62266,6 +62277,8 @@ async function executeBrowserBash(session, command, options2 = {}) {
|
|
|
62266
62277
|
}
|
|
62267
62278
|
|
|
62268
62279
|
// src/index.ts
|
|
62280
|
+
var AGENT_WEB_OS_VERSION = "0.1.10";
|
|
62281
|
+
console.log(`[agent-web-os] v${AGENT_WEB_OS_VERSION}`);
|
|
62269
62282
|
var getServerBridge2 = getServerBridge;
|
|
62270
62283
|
var resetServerBridge2 = resetServerBridge;
|
|
62271
62284
|
/*! Bundled license information:
|