@bluecopa/harness 2.0.0 → 2.0.1-snapshot.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.
@@ -21,6 +21,14 @@ interface ToolResult {
21
21
  interface BashOptions {
22
22
  timeout?: number | undefined;
23
23
  cwd?: string | undefined;
24
+ /** Human-readable label for long-running jobs. */
25
+ label?: string | undefined;
26
+ /** When set, run the command on a remote host via SSH (detached via nohup, persistent across truecode restarts). */
27
+ remote?: {
28
+ host: string;
29
+ user?: string | undefined;
30
+ keyPath?: string | undefined;
31
+ } | undefined;
24
32
  }
25
33
  interface ReadOptions {
26
34
  lineRange?: [number, number] | undefined;
@@ -124,7 +132,8 @@ interface ToolProvider {
124
132
  thread?: ((command: string, options?: BashOptions) => Promise<ToolResult>) | undefined;
125
133
  check?: ((threadId: string) => Promise<ToolResult>) | undefined;
126
134
  cancel?: ((threadId: string) => Promise<ToolResult>) | undefined;
127
- activeThreads?: (() => ThreadStatus[]) | undefined;
135
+ /** Wait for a background thread to reach a terminal state (complete/error). Resolves with the final ThreadStatus. */
136
+ waitForThread?: ((threadId: string, signal?: AbortSignal) => Promise<ThreadStatus>) | undefined;
128
137
  batch?: ((ops: BatchOp[]) => Promise<BatchResult[]>) | undefined;
129
138
  initialize?: (() => Promise<void>) | undefined;
130
139
  destroy?: (() => Promise<void>) | undefined;
@@ -1,4 +1,4 @@
1
- import { T as ToolProvider, M as ModelFactory } from '../shared-types-DRxnerLT.js';
1
+ import { T as ToolProvider, M as ModelFactory } from '../shared-types-vZuVoy_H.js';
2
2
  import { HarnessTelemetry } from '../observability/otel.js';
3
3
  import 'ai';
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluecopa/harness",
3
- "version": "2.0.0",
3
+ "version": "2.0.1-snapshot.2",
4
4
  "description": "Provider-agnostic TypeScript agent framework",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -43,6 +43,6 @@
43
43
  },
44
44
  "publishConfig": {
45
45
  "registry": "https://registry.npmjs.org/",
46
- "access": "public"
46
+ "access": "restricted"
47
47
  }
48
48
  }