runline 0.11.0 → 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 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";
@@ -18,11 +18,19 @@ export function registerCommentActions(rl) {
18
18
  },
19
19
  });
20
20
  rl.registerAction("comment.list", {
21
- description: "List comments across the workspace. Disabled for scoped Linear connections; use issue.listComments instead.",
22
- inputSchema: t.Object({ limit: t.Optional(t.Number()) }),
21
+ description: "List comments. Pass issueId (UUID or identifier like 'LIN-123') to list one issue's comments; without it, lists workspace-wide (unscoped connections only).",
22
+ inputSchema: t.Object({
23
+ issueId: t.Optional(t.String({ description: "Only list comments on this issue. UUID or issue identifier (e.g., 'LIN-123')" })),
24
+ limit: t.Optional(t.Number({ description: "Max results (default 50)" })),
25
+ }, { additionalProperties: false }),
23
26
  async execute(input, ctx) {
27
+ const { issueId, limit = 50 } = (input ?? {});
28
+ if (issueId) {
29
+ await assertIssueInScope(ctx, issueId);
30
+ const data = await gql(key(ctx), `query($id: String!, $first: Int) { issue(id: $id) { comments(first: $first) { nodes { ${COMMENT_FIELDS} } pageInfo { hasNextPage endCursor } } } }`, { id: issueId, first: limit });
31
+ return data.issue?.comments ?? null;
32
+ }
24
33
  requireUnscoped(ctx, "comment.list");
25
- const limit = input?.limit ?? 50;
26
34
  const data = await gql(key(ctx), `query($first: Int) { comments(first: $first) { nodes { ${COMMENT_FIELDS} } pageInfo { hasNextPage endCursor } } }`, { first: limit });
27
35
  return data.comments;
28
36
  },
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runline",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
4
4
  "description": "Code mode for agents — turn any API or command into a callable action",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",