@bakers-build/core 0.12.0 → 0.12.1-next.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.
@@ -75,16 +75,22 @@ export interface ProjectConfig {
75
75
  after_done?: string;
76
76
  on_freeze?: string;
77
77
  on_resume?: string;
78
- /** Command, or commands by profile, offered to runs as provision_up(profile?). */
78
+ /** Command, or commands by profile, offered to runs as provision_up(profile?). A profile is a command, or { command, description } to tell the agent what it does. */
79
79
  provision_up?: string | {
80
- [key: string]: string;
80
+ [key: string]: string | {
81
+ command: string;
82
+ /** One line for the agent, listed in the provision_up tool description: what the profile brings up and when to use it. */
83
+ description?: string;
84
+ };
81
85
  };
82
- /** Commands by key, offered to runs as provision_exec(key, args). A string is a fixed command that takes no arguments; { command, args: true } also passes the run's arguments as argv after --, never through a shell. */
86
+ /** Commands by key, offered to runs as provision_exec(key, args). A string is a fixed command that takes no arguments; { command, args: true } also passes the run's arguments as argv after --, never through a shell; an optional description tells the agent what the key does. */
83
87
  provision_exec?: {
84
88
  [key: string]: string | {
85
89
  command: string;
86
90
  /** Pass the run's arguments to the command. */
87
91
  args?: boolean;
92
+ /** One line for the agent, listed in the provision_exec tool description: what the key runs and which args it takes. */
93
+ description?: string;
88
94
  };
89
95
  };
90
96
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bakers-build/core",
3
- "version": "0.12.0",
3
+ "version": "0.12.1-next.2",
4
4
  "description": "bakers.build surface-agnostic kernel: host contract, split-config helpers, addon preset/discovery machinery, shared primitives.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "yaml": "^2.7.0"
41
41
  },
42
42
  "bakersBuild": {
43
- "commit": "4c0c7ffab0be833fb9cbb50b0784a949593f08e6",
44
- "channel": "latest"
43
+ "commit": "916eaf86970041ef80bf1976a465e1fc9af1b033",
44
+ "channel": "next"
45
45
  }
46
46
  }
@@ -101,7 +101,7 @@
101
101
  "type": "string"
102
102
  },
103
103
  "provision_up": {
104
- "description": "Command, or commands by profile, offered to runs as provision_up(profile?).",
104
+ "description": "Command, or commands by profile, offered to runs as provision_up(profile?). A profile is a command, or { command, description } to tell the agent what it does.",
105
105
  "anyOf": [
106
106
  {
107
107
  "type": "string"
@@ -109,13 +109,33 @@
109
109
  {
110
110
  "type": "object",
111
111
  "additionalProperties": {
112
- "type": "string"
112
+ "anyOf": [
113
+ {
114
+ "type": "string"
115
+ },
116
+ {
117
+ "type": "object",
118
+ "required": ["command"],
119
+ "properties": {
120
+ "command": {
121
+ "type": "string",
122
+ "minLength": 1
123
+ },
124
+ "description": {
125
+ "description": "One line for the agent, listed in the provision_up tool description: what the profile brings up and when to use it.",
126
+ "type": "string",
127
+ "minLength": 1
128
+ }
129
+ },
130
+ "additionalProperties": false
131
+ }
132
+ ]
113
133
  }
114
134
  }
115
135
  ]
116
136
  },
117
137
  "provision_exec": {
118
- "description": "Commands by key, offered to runs as provision_exec(key, args). A string is a fixed command that takes no arguments; { command, args: true } also passes the run's arguments as argv after --, never through a shell.",
138
+ "description": "Commands by key, offered to runs as provision_exec(key, args). A string is a fixed command that takes no arguments; { command, args: true } also passes the run's arguments as argv after --, never through a shell; an optional description tells the agent what the key does.",
119
139
  "type": "object",
120
140
  "propertyNames": {
121
141
  "pattern": "^[A-Za-z0-9_-]+$"
@@ -137,6 +157,11 @@
137
157
  "args": {
138
158
  "description": "Pass the run's arguments to the command.",
139
159
  "type": "boolean"
160
+ },
161
+ "description": {
162
+ "description": "One line for the agent, listed in the provision_exec tool description: what the key runs and which args it takes.",
163
+ "type": "string",
164
+ "minLength": 1
140
165
  }
141
166
  },
142
167
  "additionalProperties": false