@vibe-forge/core 2.0.3-alpha.1 → 2.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-forge/core",
3
- "version": "2.0.3-alpha.1",
3
+ "version": "2.0.3",
4
4
  "imports": {
5
5
  "#~/*.js": {
6
6
  "__vibe-forge__": {
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "dependencies": {
55
55
  "zod": "^3.24.1",
56
- "@vibe-forge/types": "^2.0.2-alpha.1",
57
- "@vibe-forge/utils": "^2.0.3-alpha.1"
56
+ "@vibe-forge/types": "^2.0.2",
57
+ "@vibe-forge/utils": "^2.0.3"
58
58
  }
59
59
  }
@@ -146,56 +146,10 @@ export const shortcutsConfigSchema = z.object({
146
146
  switchPermissionMode: z.string().optional().describe('Shortcut for switching permission mode')
147
147
  })
148
148
 
149
- export const conversationStarterModeSchema = z.enum([
150
- 'default',
151
- 'workspace',
152
- 'entity',
153
- 'agent',
154
- 'spec'
155
- ])
156
-
157
- export const conversationStarterWorktreeConfigSchema = z.object({
158
- create: z.boolean().optional().describe('Override whether the session uses a managed worktree'),
159
- environment: z.string().optional().describe('Managed worktree environment override'),
160
- branch: z.object({
161
- name: z.string().min(1).describe('Branch name'),
162
- kind: z.enum(['local', 'remote']).optional().describe('Branch kind'),
163
- mode: z.enum(['checkout', 'create']).optional().describe('Branch operation mode')
164
- }).optional().describe('Branch selection override')
165
- })
166
-
167
- export const conversationStarterConfigSchema = z.object({
168
- id: z.string().optional().describe('Stable starter identifier'),
169
- title: z.string().min(1).describe('Starter title'),
170
- description: z.string().optional().describe('Starter description'),
171
- icon: z.string().optional().describe('Material Symbols icon name'),
172
- mode: conversationStarterModeSchema.optional().describe('Target mode, `agent` is an alias for `entity`'),
173
- target: z.string().optional().describe('Target resource name or workspace id'),
174
- targetLabel: z.string().optional().describe('Optional target label shown in the UI'),
175
- targetDescription: z.string().optional().describe('Optional target description shown in the UI'),
176
- model: z.string().optional().describe('Model id or service-prefixed model value'),
177
- adapter: z.string().optional().describe('Adapter override'),
178
- account: z.string().optional().describe('Account override'),
179
- effort: z.union([z.literal('default'), effortLevelSchema]).optional().describe('Effort override'),
180
- permissionMode: z.enum(['default', 'acceptEdits', 'plan', 'dontAsk', 'bypassPermissions']).optional()
181
- .describe('Permission mode override'),
182
- worktree: conversationStarterWorktreeConfigSchema.optional().describe('Managed worktree overrides'),
183
- prompt: z.string().optional().describe('Prefilled prompt'),
184
- files: z.array(z.string()).optional().describe('Referenced file paths'),
185
- rules: z.array(z.string()).optional().describe('Referenced rule paths or rule identifiers'),
186
- skills: z.array(z.string()).optional().describe('Referenced skill paths or skill identifiers')
187
- })
188
-
189
149
  export const conversationConfigSchema = z.object({
190
150
  style: z.enum(['friendly', 'programmatic']).optional().describe('Conversation style'),
191
151
  customInstructions: z.string().optional().describe('Extra system instructions'),
192
- injectDefaultSystemPrompt: z.boolean().optional().describe('Inject the default system prompt'),
193
- createSessionWorktree: z.boolean().optional().describe('Create a managed worktree for new sessions by default'),
194
- worktreeEnvironment: z.string().optional().describe('Default managed worktree environment'),
195
- startupPresets: z.array(conversationStarterConfigSchema).optional()
196
- .describe('Quick-start presets shown on the new session page'),
197
- builtinActions: z.array(conversationStarterConfigSchema).optional()
198
- .describe('Built-in development actions shown on the new session page')
152
+ injectDefaultSystemPrompt: z.boolean().optional().describe('Inject the default system prompt')
199
153
  })
200
154
 
201
155
  export const webAuthAccountConfigSchema = z.object({
@@ -212,35 +166,24 @@ export const webAuthConfigSchema = z.object({
212
166
  rememberDeviceTtlDays: z.number().positive().optional().describe('Remember-device token lifetime in days')
213
167
  })
214
168
 
169
+ export const skillRegistryConfigSchema = z.object({
170
+ enabled: z.boolean().optional().describe('Enable remote skill registry resolution'),
171
+ url: z.string().optional().describe('Base URL for remote skill registry search and download'),
172
+ searchUrl: z.string().optional().describe('Remote skill registry search endpoint'),
173
+ downloadUrl: z.string().optional().describe('Remote skill registry download endpoint')
174
+ })
175
+
215
176
  export const skillHomeBridgeConfigSchema = z.object({
216
177
  enabled: z.boolean().optional().describe('Bridge supported home skill roots into workspace asset discovery'),
217
178
  roots: z.union([z.string(), z.array(z.string())]).optional()
218
179
  .describe('Ordered home skill roots. Supports absolute paths or paths starting with ~')
219
180
  })
220
181
 
221
- export const configuredSkillInstallConfigSchema = z.union([
222
- z.string().min(1),
223
- z.object({
224
- name: z.string().min(1).describe('Remote skill name'),
225
- registry: z.string().optional().describe('Package registry used to install the managed skills CLI'),
226
- source: z.string().optional().describe('Remote skills CLI source path'),
227
- version: z.string().optional().describe('Remote skill version passed to the skills CLI'),
228
- rename: z.string().optional().describe('Local skill name to expose after install')
229
- })
230
- ])
231
-
232
- export const legacySkillsConfigSchema = z.object({
233
- install: z.array(configuredSkillInstallConfigSchema).optional()
234
- .describe('Project skills that should be ensured before session startup'),
182
+ export const skillsConfigSchema = z.object({
183
+ registry: z.union([z.string(), skillRegistryConfigSchema]).optional().describe('Remote skill registry settings'),
235
184
  homeBridge: skillHomeBridgeConfigSchema.optional().describe('Home skill auto-bridge settings')
236
185
  })
237
186
 
238
- export const skillsConfigSchema = z.union([
239
- z.array(configuredSkillInstallConfigSchema)
240
- .describe('Project skills that should be ensured before session startup'),
241
- legacySkillsConfigSchema
242
- ])
243
-
244
187
  const pluginInstanceConfigSchema: z.ZodType<unknown> = z.lazy(() =>
245
188
  z.object({
246
189
  id: z.string().min(1).describe('Plugin package name or short id'),
package/src/tools.ts CHANGED
@@ -1,3 +1,6 @@
1
+ export type TaskLogsOrder = 'asc' | 'desc'
2
+ export type TaskMessageMode = 'direct' | 'steer'
3
+
1
4
  export interface StopTaskToolInput {
2
5
  task_id?: string
3
6
  }
@@ -15,13 +18,25 @@ export interface StartTasksToolInput {
15
18
 
16
19
  export interface GetTaskInfoToolInput {
17
20
  taskId: string
21
+ logLimit?: number
22
+ logOrder?: TaskLogsOrder
18
23
  }
19
24
 
20
- export interface ListTasksToolInput {}
25
+ export interface SendTaskMessageToolInput {
26
+ taskId: string
27
+ message: string
28
+ mode?: TaskMessageMode
29
+ }
30
+
31
+ export interface ListTasksToolInput {
32
+ logLimit?: number
33
+ logOrder?: TaskLogsOrder
34
+ }
21
35
 
22
36
  export interface ToolInputs {
23
37
  StartTasks: StartTasksToolInput
24
38
  GetTaskInfo: GetTaskInfoToolInput
39
+ SendTaskMessage: SendTaskMessageToolInput
25
40
  ListTasks: ListTasksToolInput
26
41
  StopTask: StopTaskToolInput
27
42
  }