@bakers-build/addon-herdr-core 0.8.0 → 0.8.1-next.10

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.
@@ -6,8 +6,8 @@ export type HcExec = (args: string[]) => Promise<string>;
6
6
  export interface HerdrCoreExecutorOptions {
7
7
  /** Fallback agent command when the conductor supplies none. Default `claude`. */
8
8
  command?: string;
9
- /** As for herdr: `startTimeoutMs` (default 60 s), then `timeoutMs` (4 s). */
10
- launchWatch?: Omit<LaunchWatchOptions, 'readPane'>;
9
+ /** As for herdr: `start_timeout_ms` (default 60 s), then `timeout_ms` (4 s). */
10
+ launch_watch?: Omit<LaunchWatchOptions, 'readPane'>;
11
11
  }
12
12
  /** The oldest `hc` whose `run --bg --no-parent --outlive-parent` this addon uses. */
13
13
  export declare const MIN_HC_VERSION = "0.1.18";
package/dist/src/index.js CHANGED
@@ -122,7 +122,7 @@ export class HerdrCoreExecutor {
122
122
  ]);
123
123
  started = true;
124
124
  await watchLaunch(launch, {
125
- ...(this.options.launchWatch ?? {}),
125
+ ...(this.options.launch_watch ?? {}),
126
126
  readPane: () => this.hc(['read', name, '--lines', '40']),
127
127
  });
128
128
  return { sessionRef: name };
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://bakers.build/schema/addon-herdr-core/options.schema.json",
4
+ "title": "herdr-core executor options",
5
+ "type": "object",
6
+ "properties": {
7
+ "command": {
8
+ "type": "string",
9
+ "description": "Fallback agent command when the agent addons supply none.",
10
+ "default": "claude"
11
+ },
12
+ "launch_watch": {
13
+ "type": "object",
14
+ "description": "Launch-watch windows: how long a start may take and how soon an agent exit counts as a failed launch.",
15
+ "properties": {
16
+ "timeout_ms": {
17
+ "type": "integer",
18
+ "minimum": 0,
19
+ "description": "Window after start in which an immediate agent exit fails the launch; 0 skips it.",
20
+ "default": 4000
21
+ },
22
+ "start_timeout_ms": {
23
+ "type": "integer",
24
+ "minimum": 0,
25
+ "description": "How long the launch waits for the wrapper to report the start.",
26
+ "default": 60000
27
+ },
28
+ "poll_ms": {
29
+ "type": "integer",
30
+ "minimum": 0,
31
+ "description": "Polling interval of both windows.",
32
+ "default": 50
33
+ }
34
+ },
35
+ "additionalProperties": false
36
+ }
37
+ },
38
+ "additionalProperties": false
39
+ }
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@bakers-build/addon-herdr-core",
3
- "version": "0.8.0",
3
+ "version": "0.8.1-next.10",
4
4
  "description": "bakers.build herdr-core integration: executor running each agent in a herdr-core (hc) terminal.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "exports": {
8
8
  ".": "./dist/src/index.js",
9
- "./preset": "./dist/src/preset.js"
9
+ "./preset": "./dist/src/preset.js",
10
+ "./options.schema.json": "./options.schema.json"
10
11
  },
11
12
  "files": [
12
- "dist/src"
13
+ "dist/src",
14
+ "options.schema.json"
13
15
  ],
14
16
  "publishConfig": {
15
17
  "access": "public"
@@ -20,14 +22,14 @@
20
22
  "directory": "bakers-cli/addons/herdr-core"
21
23
  },
22
24
  "dependencies": {
23
- "@bakers-build/addon-herdr": "^0.8.0"
25
+ "@bakers-build/addon-herdr": "^0.8.1-next.10"
24
26
  },
25
27
  "peerDependencies": {
26
- "@bakers-build/conductor": "^0.8.0",
27
- "@bakers-build/core": "^0.8.0"
28
+ "@bakers-build/conductor": "^0.8.1-next.10",
29
+ "@bakers-build/core": "^0.8.1-next.10"
28
30
  },
29
31
  "bakersBuild": {
30
- "commit": "082d8c57436f78e751f5a9a26a4446cec42209ce",
31
- "channel": "latest"
32
+ "commit": "ceb44a12624feaa85cb2b0c9f84345399b38bf50",
33
+ "channel": "next"
32
34
  }
33
35
  }