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/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) */