@bakers-build/addon-herdr-core 0.8.0 → 0.8.1-next.1
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/src/index.d.ts +2 -2
- package/dist/src/index.js +1 -1
- package/options.schema.json +32 -0
- package/package.json +10 -8
package/dist/src/index.d.ts
CHANGED
|
@@ -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: `
|
|
10
|
-
|
|
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.
|
|
125
|
+
...(this.options.launch_watch ?? {}),
|
|
126
126
|
readPane: () => this.hc(['read', name, '--lines', '40']),
|
|
127
127
|
});
|
|
128
128
|
return { sessionRef: name };
|
|
@@ -0,0 +1,32 @@
|
|
|
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 conductor supplies none. Default `claude`."
|
|
10
|
+
},
|
|
11
|
+
"launch_watch": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"description": "Launch-watch windows: wait start_timeout_ms (default 60000) for the wrapper to start, then timeout_ms (default 4000) in which an immediate agent exit fails the launch.",
|
|
14
|
+
"properties": {
|
|
15
|
+
"timeout_ms": {
|
|
16
|
+
"type": "integer",
|
|
17
|
+
"minimum": 0
|
|
18
|
+
},
|
|
19
|
+
"start_timeout_ms": {
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"minimum": 0
|
|
22
|
+
},
|
|
23
|
+
"poll_ms": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"minimum": 0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"additionalProperties": false
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-herdr-core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-next.1",
|
|
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.
|
|
25
|
+
"@bakers-build/addon-herdr": "^0.8.1-next.1"
|
|
24
26
|
},
|
|
25
27
|
"peerDependencies": {
|
|
26
|
-
"@bakers-build/conductor": "^0.8.
|
|
27
|
-
"@bakers-build/core": "^0.8.
|
|
28
|
+
"@bakers-build/conductor": "^0.8.1-next.1",
|
|
29
|
+
"@bakers-build/core": "^0.8.1-next.1"
|
|
28
30
|
},
|
|
29
31
|
"bakersBuild": {
|
|
30
|
-
"commit": "
|
|
31
|
-
"channel": "
|
|
32
|
+
"commit": "c4a887bee37bb2fed14bb9ba15ad0aacf0e26f7e",
|
|
33
|
+
"channel": "next"
|
|
32
34
|
}
|
|
33
35
|
}
|