@flue/client 0.0.13 → 0.0.15

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.mts CHANGED
@@ -76,10 +76,8 @@ declare function transformEvent(raw: any): FlueEvent | null;
76
76
  interface FlueOptions {
77
77
  /** OpenCode server URL (default: 'http://localhost:48765'). */
78
78
  opencodeUrl?: string;
79
- /** Working directory used for OpenCode API calls (the repo root as seen by OpenCode). */
79
+ /** Working directory (the repo root). */
80
80
  workdir: string;
81
- /** Override working directory for shell() calls (e.g. the host path when OpenCode runs in a container). */
82
- shellWorkdir?: string;
83
81
  /** Working branch for commits. */
84
82
  branch?: string;
85
83
  /** Workflow arguments. */
@@ -139,7 +137,6 @@ declare class Flue {
139
137
  /** Scoped secrets passed by the runner. */
140
138
  readonly secrets: Record<string, string>;
141
139
  private readonly workdir;
142
- private readonly shellWorkdir;
143
140
  private readonly model?;
144
141
  private readonly client;
145
142
  constructor(options: FlueOptions);
package/dist/index.mjs CHANGED
@@ -446,7 +446,6 @@ var Flue = class {
446
446
  /** Scoped secrets passed by the runner. */
447
447
  secrets;
448
448
  workdir;
449
- shellWorkdir;
450
449
  model;
451
450
  client;
452
451
  constructor(options) {
@@ -454,11 +453,10 @@ var Flue = class {
454
453
  this.args = options.args ?? {};
455
454
  this.secrets = options.secrets ?? {};
456
455
  this.workdir = options.workdir;
457
- this.shellWorkdir = options.shellWorkdir ?? options.workdir;
458
456
  this.model = options.model;
459
457
  this.client = createOpencodeClient({
460
458
  baseUrl: options.opencodeUrl ?? "http://localhost:48765",
461
- directory: options.workdir
459
+ directory: this.workdir
462
460
  });
463
461
  }
464
462
  async skill(name, options) {
@@ -484,7 +482,7 @@ var Flue = class {
484
482
  async shell(command, options) {
485
483
  return runShell(command, {
486
484
  ...options,
487
- cwd: options?.cwd ?? this.shellWorkdir
485
+ cwd: options?.cwd ?? this.workdir
488
486
  });
489
487
  }
490
488
  /** Close the OpenCode client connection. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flue/client",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "exports": {