runline 0.11.1 → 0.11.2
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.ts +1 -1
- package/dist/sdk.d.ts +5 -1
- package/dist/sdk.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { installPlugin, listInstalled, parsePluginSource, removePlugin, } from "
|
|
|
12
12
|
export { discoverPlugins, loadAllPlugins, loadPluginFromPath, loadPluginsFromConfig, } from "./plugin/loader.js";
|
|
13
13
|
export { PluginRegistry, registry } from "./plugin/registry.js";
|
|
14
14
|
export type { ActionContext, ActionDef, ConnectionConfig, ConnectionSchema, ConnectionSchemaField, InputField, InputSchema, LegacyConnectionSchema, OAuthConfig, PluginDef, } from "./plugin/types.js";
|
|
15
|
-
export type { RunlineOptions } from "./sdk.js";
|
|
15
|
+
export type { RunlineExecuteOptions, RunlineOptions } from "./sdk.js";
|
|
16
16
|
export { Runline } from "./sdk.js";
|
|
17
17
|
export type { ExecOptions, ExecResult, OutputParser } from "./utils/cli.js";
|
|
18
18
|
export { commandExists, syncExec } from "./utils/cli.js";
|
package/dist/sdk.d.ts
CHANGED
|
@@ -7,13 +7,17 @@ export interface RunlineOptions {
|
|
|
7
7
|
timeoutMs?: number;
|
|
8
8
|
memoryLimitBytes?: number;
|
|
9
9
|
}
|
|
10
|
+
export interface RunlineExecuteOptions {
|
|
11
|
+
timeoutMs?: number;
|
|
12
|
+
memoryLimitBytes?: number;
|
|
13
|
+
}
|
|
10
14
|
export declare class Runline {
|
|
11
15
|
private _registry;
|
|
12
16
|
private _config;
|
|
13
17
|
private constructor();
|
|
14
18
|
static create(options?: RunlineOptions): Runline;
|
|
15
19
|
/** Execute JavaScript code in the QuickJS runtime. */
|
|
16
|
-
execute(code: string): Promise<ExecuteResult>;
|
|
20
|
+
execute(code: string, options?: RunlineExecuteOptions): Promise<ExecuteResult>;
|
|
17
21
|
/** Register an additional plugin after creation. */
|
|
18
22
|
addPlugin(pluginOrFn: PluginDef | PluginFunction, connections?: ConnectionConfig[]): void;
|
|
19
23
|
/** List all available actions across all plugins. */
|
package/dist/sdk.js
CHANGED
|
@@ -24,9 +24,9 @@ export class Runline {
|
|
|
24
24
|
return new Runline(options);
|
|
25
25
|
}
|
|
26
26
|
/** Execute JavaScript code in the QuickJS runtime. */
|
|
27
|
-
async execute(code) {
|
|
27
|
+
async execute(code, options) {
|
|
28
28
|
const engine = new ExecutionEngine(this._registry, this._config);
|
|
29
|
-
return engine.execute(code);
|
|
29
|
+
return engine.execute(code, options);
|
|
30
30
|
}
|
|
31
31
|
/** Register an additional plugin after creation. */
|
|
32
32
|
addPlugin(pluginOrFn, connections) {
|