@bakers-build/conductor 0.8.1-next.8 → 0.9.0
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/contract.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AmbiguousProjectNameError, type ResolvedBbProjectContext, resolveBbProjectContext, } from './bakers-project-context.js';
|
|
2
|
-
export { type AgentFootprint, type AgentRunIdentity, type BbAgent, CONDUCTOR_TOKEN_ENV, CONDUCTOR_TOOLS_SERVER, CONDUCTOR_URL_ENV, DEFAULT_ENV_DENY, emptyAgentFootprint, matchesEnvDeny, type PluginLaunch, type RunEnvPolicy, } from './plugins/agent.js';
|
|
2
|
+
export { type AgentFootprint, type AgentRunIdentity, type BbAgent, CONDUCTOR_TOKEN_ENV, CONDUCTOR_TOOL_TIMEOUT_MS, CONDUCTOR_TOOLS_SERVER, CONDUCTOR_URL_ENV, DEFAULT_ENV_DENY, emptyAgentFootprint, matchesEnvDeny, type PluginLaunch, type RunEnvPolicy, } from './plugins/agent.js';
|
|
3
3
|
export { detectKnownOverrides, type KnownOptionSpec, type KnownOverrides, type KnownScalarKind, type ResolvedSecurity, resolveAgentCliOptions, resolveSecurityOptions, type SandboxOptions, SECURITY_MODES, type SecurityMode, type SecurityOptions, type SecurityReport, SHARED_SECURITY_KEY, type SharedListKey, type SharedSecurity, validateAgentArgs, validateOptionalBoolean, validateOptionalString, validateSharedSecurity, } from './plugins/agent-args.js';
|
|
4
4
|
export { ensureHome, homeKey, homePath, type MarketplaceDeclaration, validateMarketplaces, } from './plugins/agent-home.js';
|
|
5
5
|
export type { BbExecutor, ConductorStartContext, ExecutorCapabilities, HookContext, HookListener, HookListenerContext, HookListenerFn, HookName, HookResult, MachineRegistrationData, OpenWorkspaceContext, SpawnedSession, SpawnRunInput, WorktreeTeardown, } from './plugins/executor.js';
|
package/dist/src/contract.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// The package main re-exports everything here too, so `import type { BbRemote }
|
|
13
13
|
// from '@bakers-build/conductor'` keeps working for type-only consumers.
|
|
14
14
|
export { AmbiguousProjectNameError, resolveBbProjectContext, } from './bakers-project-context.js';
|
|
15
|
-
export { CONDUCTOR_TOKEN_ENV, CONDUCTOR_TOOLS_SERVER, CONDUCTOR_URL_ENV, DEFAULT_ENV_DENY, emptyAgentFootprint, matchesEnvDeny, } from './plugins/agent.js';
|
|
15
|
+
export { CONDUCTOR_TOKEN_ENV, CONDUCTOR_TOOL_TIMEOUT_MS, CONDUCTOR_TOOLS_SERVER, CONDUCTOR_URL_ENV, DEFAULT_ENV_DENY, emptyAgentFootprint, matchesEnvDeny, } from './plugins/agent.js';
|
|
16
16
|
export { detectKnownOverrides, resolveAgentCliOptions, resolveSecurityOptions, SECURITY_MODES, SHARED_SECURITY_KEY, validateAgentArgs, validateOptionalBoolean, validateOptionalString, validateSharedSecurity, } from './plugins/agent-args.js';
|
|
17
17
|
export { ensureHome, homeKey, homePath, validateMarketplaces, } from './plugins/agent-home.js';
|
|
18
18
|
export { loadInbox, validateRequestPayload, } from './plugins/message.js';
|
|
@@ -83,6 +83,13 @@ export interface AgentRunIdentity {
|
|
|
83
83
|
}
|
|
84
84
|
/** The MCP server name agents see for the conductor's addon tools. */
|
|
85
85
|
export declare const CONDUCTOR_TOOLS_SERVER = "bakers";
|
|
86
|
+
/**
|
|
87
|
+
* The tool-call timeout a launch sets on that server, past the longest
|
|
88
|
+
* provision. Without it Claude Code's HTTP MCP client cuts a call at 60 s
|
|
89
|
+
* (per-server `timeout`, else `MCP_TOOL_TIMEOUT`) and Codex at
|
|
90
|
+
* `tool_timeout_sec` (60 s default).
|
|
91
|
+
*/
|
|
92
|
+
export declare const CONDUCTOR_TOOL_TIMEOUT_MS: number;
|
|
86
93
|
/** The run env var holding the run's bearer token for that server. */
|
|
87
94
|
export declare const CONDUCTOR_TOKEN_ENV = "BAKERS_CONDUCTOR_TOKEN";
|
|
88
95
|
/** The run env var holding that server's URL, for `bakers conductor tools`. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PROVISION_TIMEOUT_MS } from './tools.js';
|
|
1
2
|
/** An all-zero footprint — the honest result for an empty/absent transcript. */
|
|
2
3
|
export function emptyAgentFootprint() {
|
|
3
4
|
return {
|
|
@@ -39,6 +40,13 @@ export function matchesEnvDeny(name, patterns) {
|
|
|
39
40
|
}
|
|
40
41
|
/** The MCP server name agents see for the conductor's addon tools. */
|
|
41
42
|
export const CONDUCTOR_TOOLS_SERVER = 'bakers';
|
|
43
|
+
/**
|
|
44
|
+
* The tool-call timeout a launch sets on that server, past the longest
|
|
45
|
+
* provision. Without it Claude Code's HTTP MCP client cuts a call at 60 s
|
|
46
|
+
* (per-server `timeout`, else `MCP_TOOL_TIMEOUT`) and Codex at
|
|
47
|
+
* `tool_timeout_sec` (60 s default).
|
|
48
|
+
*/
|
|
49
|
+
export const CONDUCTOR_TOOL_TIMEOUT_MS = PROVISION_TIMEOUT_MS + 60_000;
|
|
42
50
|
/** The run env var holding the run's bearer token for that server. */
|
|
43
51
|
export const CONDUCTOR_TOKEN_ENV = 'BAKERS_CONDUCTOR_TOKEN';
|
|
44
52
|
/** The run env var holding that server's URL, for `bakers conductor tools`. */
|
|
@@ -57,6 +57,7 @@ export interface ToolRegistry {
|
|
|
57
57
|
}
|
|
58
58
|
/** `hooks.provision_up`: one command, or a command per profile. */
|
|
59
59
|
export type ProvisionHook = string | Record<string, string>;
|
|
60
|
+
export declare const PROVISION_TIMEOUT_MS: number;
|
|
60
61
|
type ShellResult = {
|
|
61
62
|
exitCode: number;
|
|
62
63
|
output: string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// Every call is bound to one worktree by the caller, never by an argument.
|
|
6
6
|
import { spawn } from 'node:child_process';
|
|
7
7
|
import { payloadSchema, validateArgs, } from '@bakers-build/message';
|
|
8
|
-
const PROVISION_TIMEOUT_MS = 30 * 60_000;
|
|
8
|
+
export const PROVISION_TIMEOUT_MS = 30 * 60_000;
|
|
9
9
|
const OUTPUT_CAP = 64 * 1024;
|
|
10
10
|
export function provisionRuns(timeoutMs = PROVISION_TIMEOUT_MS) {
|
|
11
11
|
const running = new Map();
|
|
@@ -61,7 +61,7 @@ export function provisionTools(hook, runs = provisionRuns()) {
|
|
|
61
61
|
contract: 1,
|
|
62
62
|
tools: {
|
|
63
63
|
provision_up: {
|
|
64
|
-
description: `Bring this worktree's environment up${profiles ? ` with a configured profile (${keys})` : ''}; the project's command reuses a ready environment. Returns the command's output, including the base URL.`,
|
|
64
|
+
description: `Bring this worktree's environment up${profiles ? ` with a configured profile (${keys})` : ''}; the project's command reuses a ready environment. Returns the command's output, including the base URL. The first call on a new worktree can take minutes; the call waits until the command ends, for up to 30 minutes. On a client timeout the command keeps running: call again with the same profile to join it and receive its result, without starting a second one.`,
|
|
65
65
|
input: {
|
|
66
66
|
type: 'object',
|
|
67
67
|
properties: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/conductor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "bakers.build conductor engine + CLI: registers, claims tickets via JSON:API, dispatches agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@dropsh/plugin-jsonapi-schema": "^0.8.2",
|
|
34
34
|
"@dropsh/plugin-oauth2": "^0.8.2",
|
|
35
|
-
"@bakers-build/core": "^0.
|
|
36
|
-
"@bakers-build/message": "^0.
|
|
35
|
+
"@bakers-build/core": "^0.9.0",
|
|
36
|
+
"@bakers-build/message": "^0.9.0",
|
|
37
37
|
"@modelcontextprotocol/sdk": "1.32.1",
|
|
38
38
|
"commander": "^12.1.0",
|
|
39
39
|
"dropsh": "^0.8.2"
|
|
40
40
|
},
|
|
41
41
|
"bakersBuild": {
|
|
42
|
-
"commit": "
|
|
43
|
-
"channel": "
|
|
42
|
+
"commit": "ceb44a12624feaa85cb2b0c9f84345399b38bf50",
|
|
43
|
+
"channel": "latest"
|
|
44
44
|
}
|
|
45
45
|
}
|