agent-web-os 0.1.1 → 0.1.3
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 +80 -0
- package/README.zh-CN.md +80 -0
- package/dist/index.cjs +552 -489
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +457 -396
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as just_bash from 'just-bash';
|
|
2
2
|
import { InMemoryFs, FileContent, MkdirOptions, RmOptions, CpOptions } from 'just-bash';
|
|
3
|
-
import { CommandContext, ExecResult, Bash } from 'just-bash/browser';
|
|
4
|
-
export { Bash, CommandContext, ExecResult, defineCommand } from 'just-bash/browser';
|
|
3
|
+
import { CommandContext, ExecResult, Bash, CustomCommand } from 'just-bash/browser';
|
|
4
|
+
export { Bash, CommandContext, CustomCommand, ExecResult, defineCommand } from 'just-bash/browser';
|
|
5
5
|
|
|
6
6
|
type ObservableInMemoryFsWriteFileSyncOptions = Parameters<InMemoryFs["writeFileSync"]>[2];
|
|
7
7
|
type ObservableInMemoryFsWriteFileSyncMetadata = Parameters<InMemoryFs["writeFileSync"]>[3];
|
|
@@ -222,6 +222,8 @@ type BrowserBashSessionOptions = {
|
|
|
222
222
|
env?: Record<string, string>;
|
|
223
223
|
/** Options for the ObservableInMemoryFs */
|
|
224
224
|
fsOptions?: ObservableInMemoryFsOptions;
|
|
225
|
+
/** Additional custom commands to register alongside the built-in node/npm commands */
|
|
226
|
+
customCommands?: CustomCommand[];
|
|
225
227
|
};
|
|
226
228
|
type ExecuteBrowserBashOptions = {
|
|
227
229
|
/** Whether to truncate command output (default: true) */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as just_bash from 'just-bash';
|
|
2
2
|
import { InMemoryFs, FileContent, MkdirOptions, RmOptions, CpOptions } from 'just-bash';
|
|
3
|
-
import { CommandContext, ExecResult, Bash } from 'just-bash/browser';
|
|
4
|
-
export { Bash, CommandContext, ExecResult, defineCommand } from 'just-bash/browser';
|
|
3
|
+
import { CommandContext, ExecResult, Bash, CustomCommand } from 'just-bash/browser';
|
|
4
|
+
export { Bash, CommandContext, CustomCommand, ExecResult, defineCommand } from 'just-bash/browser';
|
|
5
5
|
|
|
6
6
|
type ObservableInMemoryFsWriteFileSyncOptions = Parameters<InMemoryFs["writeFileSync"]>[2];
|
|
7
7
|
type ObservableInMemoryFsWriteFileSyncMetadata = Parameters<InMemoryFs["writeFileSync"]>[3];
|
|
@@ -222,6 +222,8 @@ type BrowserBashSessionOptions = {
|
|
|
222
222
|
env?: Record<string, string>;
|
|
223
223
|
/** Options for the ObservableInMemoryFs */
|
|
224
224
|
fsOptions?: ObservableInMemoryFsOptions;
|
|
225
|
+
/** Additional custom commands to register alongside the built-in node/npm commands */
|
|
226
|
+
customCommands?: CustomCommand[];
|
|
225
227
|
};
|
|
226
228
|
type ExecuteBrowserBashOptions = {
|
|
227
229
|
/** Whether to truncate command output (default: true) */
|