remote-codex 0.11.18 → 0.11.20
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/apps/relay-server/dist/index.js +48 -1
- package/apps/supervisor-api/dist/index.js +27939 -4
- package/apps/supervisor-web/dist/assets/index-BdeDlmJY.js +5 -0
- package/apps/supervisor-web/dist/assets/index-BmBS1Wzk.css +1 -0
- package/apps/supervisor-web/dist/assets/thread-ui-C5nUCiEf.js +3624 -0
- package/apps/supervisor-web/dist/index.html +3 -3
- package/package.json +1 -39
- package/packages/agent-runtime/src/types.ts +3 -1
- package/packages/claude/src/runtimeAdapter.test.ts +25 -0
- package/packages/claude/src/runtimeAdapter.ts +85 -24
- package/packages/codex/src/appServerManager.test.ts +2 -1
- package/packages/codex/src/historyItems.test.ts +26 -0
- package/packages/codex/src/historyItems.ts +17 -0
- package/packages/codex/src/runtimeAdapter.ts +1 -1
- package/packages/db/migrations/0028_thread_turn_display_prompt.sql +1 -0
- package/packages/db/src/repositories.ts +6 -123
- package/packages/db/src/schema.ts +2 -334
- package/packages/opencode/src/runtimeAdapter.test.ts +13 -1
- package/packages/opencode/src/runtimeAdapter.ts +1 -2
- package/packages/shared/src/index.ts +4 -1
- package/apps/supervisor-api/dist/chunk-TGPTF6DT.js +0 -29479
- package/apps/supervisor-api/dist/worker-index.d.ts +0 -2
- package/apps/supervisor-api/dist/worker-index.js +0 -197
- package/apps/supervisor-web/dist/assets/index-C6wykq95.js +0 -6
- package/apps/supervisor-web/dist/assets/index-D3I41SIH.css +0 -1
- package/apps/supervisor-web/dist/assets/thread-ui-DnSeQdfq.js +0 -3614
- package/packages/db/migrations/0018_control_plane.sql +0 -129
- package/packages/db/migrations/0019_control_plane_projects.sql +0 -19
- package/packages/db/migrations/0020_control_workspace_status.sql +0 -1
- package/packages/db/migrations/0021_control_sandbox_lifecycle_fields.sql +0 -3
- package/packages/db/migrations/0022_control_sandbox_resource_profile.sql +0 -1
- package/packages/db/migrations/0023_control_usage_import_state.sql +0 -18
- package/packages/db/migrations/0024_control_auth.sql +0 -23
- package/packages/db/migrations/0025_control_harness_credentials.sql +0 -29
- package/packages/db/migrations/0026_control_harness_usage_events.sql +0 -27
- package/packages/db/migrations/0027_harness_job_watches.sql +0 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { integer,
|
|
1
|
+
import { integer, sqliteTable, text, uniqueIndex } from 'drizzle-orm/sqlite-core';
|
|
2
2
|
|
|
3
3
|
export const hosts = sqliteTable('hosts', {
|
|
4
4
|
id: text('id').primaryKey(),
|
|
@@ -94,6 +94,7 @@ export const threadTurnMetadata = sqliteTable(
|
|
|
94
94
|
pricingModelKey: text('pricing_model_key'),
|
|
95
95
|
pricingTierKey: text('pricing_tier_key'),
|
|
96
96
|
tokenUsageJson: text('token_usage_json'),
|
|
97
|
+
displayPrompt: text('display_prompt'),
|
|
97
98
|
createdAt: text('created_at').notNull(),
|
|
98
99
|
updatedAt: text('updated_at').notNull(),
|
|
99
100
|
},
|
|
@@ -176,336 +177,3 @@ export const policies = sqliteTable('policies', {
|
|
|
176
177
|
createdAt: text('created_at').notNull(),
|
|
177
178
|
updatedAt: text('updated_at').notNull()
|
|
178
179
|
});
|
|
179
|
-
|
|
180
|
-
export const controlUsers = sqliteTable(
|
|
181
|
-
'control_users',
|
|
182
|
-
{
|
|
183
|
-
id: text('id').primaryKey(),
|
|
184
|
-
authProvider: text('auth_provider').notNull(),
|
|
185
|
-
authSubject: text('auth_subject').notNull(),
|
|
186
|
-
email: text('email').notNull(),
|
|
187
|
-
displayName: text('display_name'),
|
|
188
|
-
status: text('status').notNull().default('active'),
|
|
189
|
-
plan: text('plan').notNull().default('developer'),
|
|
190
|
-
billingCustomerId: text('billing_customer_id'),
|
|
191
|
-
quotaProfile: text('quota_profile').notNull().default('developer'),
|
|
192
|
-
createdAt: text('created_at').notNull(),
|
|
193
|
-
updatedAt: text('updated_at').notNull(),
|
|
194
|
-
lastSeenAt: text('last_seen_at'),
|
|
195
|
-
},
|
|
196
|
-
(table) => ({
|
|
197
|
-
authSubjectUnique: uniqueIndex('control_users_auth_subject_idx').on(
|
|
198
|
-
table.authProvider,
|
|
199
|
-
table.authSubject,
|
|
200
|
-
),
|
|
201
|
-
}),
|
|
202
|
-
);
|
|
203
|
-
|
|
204
|
-
export const controlAuthIdentities = sqliteTable(
|
|
205
|
-
'control_auth_identities',
|
|
206
|
-
{
|
|
207
|
-
id: text('id').primaryKey(),
|
|
208
|
-
userId: text('user_id').notNull(),
|
|
209
|
-
authProvider: text('auth_provider').notNull(),
|
|
210
|
-
authSubject: text('auth_subject').notNull(),
|
|
211
|
-
email: text('email'),
|
|
212
|
-
displayName: text('display_name'),
|
|
213
|
-
createdAt: text('created_at').notNull(),
|
|
214
|
-
updatedAt: text('updated_at').notNull(),
|
|
215
|
-
},
|
|
216
|
-
(table) => ({
|
|
217
|
-
authSubjectUnique: uniqueIndex('control_auth_identities_subject_idx').on(
|
|
218
|
-
table.authProvider,
|
|
219
|
-
table.authSubject,
|
|
220
|
-
),
|
|
221
|
-
}),
|
|
222
|
-
);
|
|
223
|
-
|
|
224
|
-
export const controlPasswordCredentials = sqliteTable(
|
|
225
|
-
'control_password_credentials',
|
|
226
|
-
{
|
|
227
|
-
id: text('id').primaryKey(),
|
|
228
|
-
userId: text('user_id').notNull(),
|
|
229
|
-
email: text('email').notNull(),
|
|
230
|
-
passwordHash: text('password_hash').notNull(),
|
|
231
|
-
createdAt: text('created_at').notNull(),
|
|
232
|
-
updatedAt: text('updated_at').notNull(),
|
|
233
|
-
lastUsedAt: text('last_used_at'),
|
|
234
|
-
},
|
|
235
|
-
(table) => ({
|
|
236
|
-
emailUnique: uniqueIndex('control_password_credentials_email_idx').on(table.email),
|
|
237
|
-
userUnique: uniqueIndex('control_password_credentials_user_idx').on(table.userId),
|
|
238
|
-
}),
|
|
239
|
-
);
|
|
240
|
-
|
|
241
|
-
export const controlProjects = sqliteTable('control_projects', {
|
|
242
|
-
id: text('id').primaryKey(),
|
|
243
|
-
userId: text('user_id').notNull(),
|
|
244
|
-
name: text('name').notNull(),
|
|
245
|
-
slug: text('slug').notNull(),
|
|
246
|
-
status: text('status').notNull().default('active'),
|
|
247
|
-
createdAt: text('created_at').notNull(),
|
|
248
|
-
updatedAt: text('updated_at').notNull(),
|
|
249
|
-
});
|
|
250
|
-
|
|
251
|
-
export const controlSandboxes = sqliteTable('control_sandboxes', {
|
|
252
|
-
id: text('id').primaryKey(),
|
|
253
|
-
userId: text('user_id').notNull().unique(),
|
|
254
|
-
state: text('state').notNull(),
|
|
255
|
-
image: text('image').notNull(),
|
|
256
|
-
region: text('region').notNull(),
|
|
257
|
-
resourceProfile: text('resource_profile').notNull().default('standard'),
|
|
258
|
-
k8sNamespace: text('k8s_namespace'),
|
|
259
|
-
k8sPodName: text('k8s_pod_name'),
|
|
260
|
-
routerBaseUrl: text('router_base_url'),
|
|
261
|
-
workerServiceName: text('worker_service_name'),
|
|
262
|
-
s3Prefix: text('s3_prefix').notNull(),
|
|
263
|
-
gatewayKeyId: text('gateway_key_id'),
|
|
264
|
-
lastStartedAt: text('last_started_at'),
|
|
265
|
-
lastSeenAt: text('last_seen_at'),
|
|
266
|
-
idleTimeoutAt: text('idle_timeout_at'),
|
|
267
|
-
statusReason: text('status_reason'),
|
|
268
|
-
startupProgress: integer('startup_progress').notNull().default(0),
|
|
269
|
-
lastFailureCode: text('last_failure_code'),
|
|
270
|
-
lastFailureMessage: text('last_failure_message'),
|
|
271
|
-
createdAt: text('created_at').notNull(),
|
|
272
|
-
updatedAt: text('updated_at').notNull(),
|
|
273
|
-
});
|
|
274
|
-
|
|
275
|
-
export const controlWorkspaces = sqliteTable(
|
|
276
|
-
'control_workspaces',
|
|
277
|
-
{
|
|
278
|
-
id: text('id').primaryKey(),
|
|
279
|
-
userId: text('user_id').notNull(),
|
|
280
|
-
projectId: text('project_id'),
|
|
281
|
-
sandboxId: text('sandbox_id').notNull(),
|
|
282
|
-
name: text('name').notNull(),
|
|
283
|
-
slug: text('slug').notNull(),
|
|
284
|
-
status: text('status').notNull().default('active'),
|
|
285
|
-
path: text('path').notNull(),
|
|
286
|
-
sourceType: text('source_type').notNull(),
|
|
287
|
-
gitUrl: text('git_url'),
|
|
288
|
-
defaultBranch: text('default_branch'),
|
|
289
|
-
createdAt: text('created_at').notNull(),
|
|
290
|
-
updatedAt: text('updated_at').notNull(),
|
|
291
|
-
},
|
|
292
|
-
(table) => ({
|
|
293
|
-
sandboxSlugUnique: uniqueIndex('control_workspaces_sandbox_slug_idx').on(
|
|
294
|
-
table.sandboxId,
|
|
295
|
-
table.slug,
|
|
296
|
-
),
|
|
297
|
-
}),
|
|
298
|
-
);
|
|
299
|
-
|
|
300
|
-
export const controlSessions = sqliteTable('control_sessions', {
|
|
301
|
-
id: text('id').primaryKey(),
|
|
302
|
-
userId: text('user_id').notNull(),
|
|
303
|
-
sandboxId: text('sandbox_id').notNull(),
|
|
304
|
-
workspaceId: text('workspace_id').notNull(),
|
|
305
|
-
provider: text('provider').notNull(),
|
|
306
|
-
workerSessionId: text('worker_session_id'),
|
|
307
|
-
title: text('title').notNull(),
|
|
308
|
-
status: text('status').notNull(),
|
|
309
|
-
lastActivityAt: text('last_activity_at'),
|
|
310
|
-
createdAt: text('created_at').notNull(),
|
|
311
|
-
updatedAt: text('updated_at').notNull(),
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
export const controlGatewayUsers = sqliteTable(
|
|
315
|
-
'control_gateway_users',
|
|
316
|
-
{
|
|
317
|
-
id: text('id').primaryKey(),
|
|
318
|
-
userId: text('user_id').notNull(),
|
|
319
|
-
provider: text('provider').notNull(),
|
|
320
|
-
externalUserId: text('external_user_id').notNull(),
|
|
321
|
-
createdAt: text('created_at').notNull(),
|
|
322
|
-
},
|
|
323
|
-
(table) => ({
|
|
324
|
-
userProviderUnique: uniqueIndex('control_gateway_users_user_provider_idx').on(
|
|
325
|
-
table.userId,
|
|
326
|
-
table.provider,
|
|
327
|
-
),
|
|
328
|
-
providerExternalUnique: uniqueIndex('control_gateway_users_provider_external_idx').on(
|
|
329
|
-
table.provider,
|
|
330
|
-
table.externalUserId,
|
|
331
|
-
),
|
|
332
|
-
}),
|
|
333
|
-
);
|
|
334
|
-
|
|
335
|
-
export const controlGatewayKeys = sqliteTable(
|
|
336
|
-
'control_gateway_keys',
|
|
337
|
-
{
|
|
338
|
-
id: text('id').primaryKey(),
|
|
339
|
-
userId: text('user_id').notNull(),
|
|
340
|
-
sandboxId: text('sandbox_id').notNull(),
|
|
341
|
-
provider: text('provider').notNull(),
|
|
342
|
-
externalKeyId: text('external_key_id').notNull(),
|
|
343
|
-
keyCiphertext: text('key_ciphertext'),
|
|
344
|
-
status: text('status').notNull(),
|
|
345
|
-
createdAt: text('created_at').notNull(),
|
|
346
|
-
rotatedAt: text('rotated_at'),
|
|
347
|
-
revokedAt: text('revoked_at'),
|
|
348
|
-
},
|
|
349
|
-
(table) => ({
|
|
350
|
-
sandboxProviderUnique: uniqueIndex('control_gateway_keys_sandbox_provider_idx').on(
|
|
351
|
-
table.sandboxId,
|
|
352
|
-
table.provider,
|
|
353
|
-
),
|
|
354
|
-
providerExternalUnique: uniqueIndex('control_gateway_keys_provider_external_idx').on(
|
|
355
|
-
table.provider,
|
|
356
|
-
table.externalKeyId,
|
|
357
|
-
),
|
|
358
|
-
}),
|
|
359
|
-
);
|
|
360
|
-
|
|
361
|
-
export const controlHarnessUsers = sqliteTable(
|
|
362
|
-
'control_harness_users',
|
|
363
|
-
{
|
|
364
|
-
id: text('id').primaryKey(),
|
|
365
|
-
userId: text('user_id').notNull(),
|
|
366
|
-
provider: text('provider').notNull(),
|
|
367
|
-
externalUserId: text('external_user_id').notNull(),
|
|
368
|
-
createdAt: text('created_at').notNull(),
|
|
369
|
-
},
|
|
370
|
-
(table) => ({
|
|
371
|
-
userProviderUnique: uniqueIndex('control_harness_users_user_provider_idx').on(
|
|
372
|
-
table.userId,
|
|
373
|
-
table.provider,
|
|
374
|
-
),
|
|
375
|
-
providerExternalUnique: uniqueIndex('control_harness_users_provider_external_idx').on(
|
|
376
|
-
table.provider,
|
|
377
|
-
table.externalUserId,
|
|
378
|
-
),
|
|
379
|
-
}),
|
|
380
|
-
);
|
|
381
|
-
|
|
382
|
-
export const controlHarnessKeys = sqliteTable(
|
|
383
|
-
'control_harness_keys',
|
|
384
|
-
{
|
|
385
|
-
id: text('id').primaryKey(),
|
|
386
|
-
userId: text('user_id').notNull(),
|
|
387
|
-
sandboxId: text('sandbox_id').notNull(),
|
|
388
|
-
provider: text('provider').notNull(),
|
|
389
|
-
externalKeyId: text('external_key_id').notNull(),
|
|
390
|
-
keyCiphertext: text('key_ciphertext'),
|
|
391
|
-
secretName: text('secret_name'),
|
|
392
|
-
secretKey: text('secret_key'),
|
|
393
|
-
status: text('status').notNull(),
|
|
394
|
-
createdAt: text('created_at').notNull(),
|
|
395
|
-
rotatedAt: text('rotated_at'),
|
|
396
|
-
revokedAt: text('revoked_at'),
|
|
397
|
-
},
|
|
398
|
-
(table) => ({
|
|
399
|
-
sandboxProviderUnique: uniqueIndex('control_harness_keys_sandbox_provider_idx').on(
|
|
400
|
-
table.sandboxId,
|
|
401
|
-
table.provider,
|
|
402
|
-
),
|
|
403
|
-
providerExternalUnique: uniqueIndex('control_harness_keys_provider_external_idx').on(
|
|
404
|
-
table.provider,
|
|
405
|
-
table.externalKeyId,
|
|
406
|
-
),
|
|
407
|
-
}),
|
|
408
|
-
);
|
|
409
|
-
|
|
410
|
-
export const controlUsageEvents = sqliteTable('control_usage_events', {
|
|
411
|
-
id: text('id').primaryKey(),
|
|
412
|
-
userId: text('user_id').notNull(),
|
|
413
|
-
sandboxId: text('sandbox_id').notNull(),
|
|
414
|
-
workspaceId: text('workspace_id'),
|
|
415
|
-
sessionId: text('session_id'),
|
|
416
|
-
gatewayKeyId: text('gateway_key_id'),
|
|
417
|
-
provider: text('provider').notNull(),
|
|
418
|
-
model: text('model').notNull(),
|
|
419
|
-
inputTokens: integer('input_tokens').notNull().default(0),
|
|
420
|
-
outputTokens: integer('output_tokens').notNull().default(0),
|
|
421
|
-
cachedTokens: integer('cached_tokens').notNull().default(0),
|
|
422
|
-
costUsd: real('cost_usd').notNull().default(0),
|
|
423
|
-
externalRequestId: text('external_request_id'),
|
|
424
|
-
occurredAt: text('occurred_at').notNull(),
|
|
425
|
-
importedAt: text('imported_at').notNull(),
|
|
426
|
-
});
|
|
427
|
-
|
|
428
|
-
export const controlHarnessUsageEvents = sqliteTable(
|
|
429
|
-
'control_harness_usage_events',
|
|
430
|
-
{
|
|
431
|
-
id: text('id').primaryKey(),
|
|
432
|
-
userId: text('user_id').notNull(),
|
|
433
|
-
sandboxId: text('sandbox_id').notNull(),
|
|
434
|
-
workspaceId: text('workspace_id'),
|
|
435
|
-
sessionId: text('session_id'),
|
|
436
|
-
provider: text('provider').notNull(),
|
|
437
|
-
module: text('module').notNull(),
|
|
438
|
-
tool: text('tool'),
|
|
439
|
-
runId: text('run_id'),
|
|
440
|
-
jobId: text('job_id'),
|
|
441
|
-
externalEventId: text('external_event_id'),
|
|
442
|
-
computeUnits: real('compute_units').notNull().default(0),
|
|
443
|
-
costUsd: real('cost_usd').notNull().default(0),
|
|
444
|
-
status: text('status').notNull().default('unknown'),
|
|
445
|
-
metadataJson: text('metadata_json').notNull().default('{}'),
|
|
446
|
-
occurredAt: text('occurred_at').notNull(),
|
|
447
|
-
importedAt: text('imported_at').notNull(),
|
|
448
|
-
},
|
|
449
|
-
(table) => ({
|
|
450
|
-
providerExternalEventUnique: uniqueIndex('control_harness_usage_provider_event_idx')
|
|
451
|
-
.on(table.provider, table.externalEventId),
|
|
452
|
-
}),
|
|
453
|
-
);
|
|
454
|
-
|
|
455
|
-
export const controlUsageImportState = sqliteTable('control_usage_import_state', {
|
|
456
|
-
id: text('id').primaryKey(),
|
|
457
|
-
provider: text('provider').notNull(),
|
|
458
|
-
source: text('source').notNull(),
|
|
459
|
-
cursor: text('cursor'),
|
|
460
|
-
lastStartedAt: text('last_started_at'),
|
|
461
|
-
lastSucceededAt: text('last_succeeded_at'),
|
|
462
|
-
lastFailedAt: text('last_failed_at'),
|
|
463
|
-
lastFailureMessage: text('last_failure_message'),
|
|
464
|
-
lastSourceCount: integer('last_source_count').notNull().default(0),
|
|
465
|
-
lastImportedCount: integer('last_imported_count').notNull().default(0),
|
|
466
|
-
lastDuplicateCount: integer('last_duplicate_count').notNull().default(0),
|
|
467
|
-
lastFailureCount: integer('last_failure_count').notNull().default(0),
|
|
468
|
-
updatedAt: text('updated_at').notNull(),
|
|
469
|
-
}, (table) => ({
|
|
470
|
-
providerSourceIdx: uniqueIndex('control_usage_import_state_provider_source_idx')
|
|
471
|
-
.on(table.provider, table.source),
|
|
472
|
-
}));
|
|
473
|
-
|
|
474
|
-
export const controlAuditLogs = sqliteTable('control_audit_logs', {
|
|
475
|
-
id: text('id').primaryKey(),
|
|
476
|
-
userId: text('user_id'),
|
|
477
|
-
action: text('action').notNull(),
|
|
478
|
-
resourceType: text('resource_type').notNull(),
|
|
479
|
-
resourceId: text('resource_id'),
|
|
480
|
-
metadataJson: text('metadata_json').notNull(),
|
|
481
|
-
createdAt: text('created_at').notNull(),
|
|
482
|
-
});
|
|
483
|
-
|
|
484
|
-
export const harnessNotifyRegistrations = sqliteTable('harness_notify_registrations', {
|
|
485
|
-
id: text('id').primaryKey(),
|
|
486
|
-
agentId: text('agent_id').notNull(),
|
|
487
|
-
hookToken: text('hook_token').notNull(),
|
|
488
|
-
secret: text('secret').notNull(),
|
|
489
|
-
callbackUrl: text('callback_url').notNull(),
|
|
490
|
-
registeredAt: text('registered_at').notNull(),
|
|
491
|
-
updatedAt: text('updated_at').notNull(),
|
|
492
|
-
});
|
|
493
|
-
|
|
494
|
-
export const harnessJobWatches = sqliteTable(
|
|
495
|
-
'harness_job_watches',
|
|
496
|
-
{
|
|
497
|
-
id: text('id').primaryKey(),
|
|
498
|
-
jobId: text('job_id').notNull(),
|
|
499
|
-
threadId: text('thread_id').notNull(),
|
|
500
|
-
title: text('title'),
|
|
501
|
-
status: text('status').notNull().default('pending'),
|
|
502
|
-
lastJobStatus: text('last_job_status'),
|
|
503
|
-
lastError: text('last_error'),
|
|
504
|
-
createdAt: text('created_at').notNull(),
|
|
505
|
-
updatedAt: text('updated_at').notNull(),
|
|
506
|
-
deliveredAt: text('delivered_at'),
|
|
507
|
-
},
|
|
508
|
-
(table) => ({
|
|
509
|
-
jobIdUnique: uniqueIndex('harness_job_watches_job_id_idx').on(table.jobId),
|
|
510
|
-
}),
|
|
511
|
-
);
|
|
@@ -22,6 +22,18 @@ afterEach(async () => {
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
describe('OpenCodeRuntimeAdapter', () => {
|
|
25
|
+
it('does not expose MCP toolbox affordances until the runtime supports MCP status', async () => {
|
|
26
|
+
const adapter = new OpenCodeRuntimeAdapter({
|
|
27
|
+
home: await tempHome(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
expect(adapter.capabilities.management.mcpStatus).toBe(false);
|
|
31
|
+
expect(adapter.managementSchema.toolboxItems.map((item) => item.command)).toEqual([
|
|
32
|
+
'/compact',
|
|
33
|
+
'/fork',
|
|
34
|
+
]);
|
|
35
|
+
});
|
|
36
|
+
|
|
25
37
|
it('keeps provider and variant in model selections', async () => {
|
|
26
38
|
const sessionCreate = vi.fn(async () => ({
|
|
27
39
|
id: 'session-1',
|
|
@@ -1179,7 +1191,7 @@ describe('OpenCodeRuntimeAdapter', () => {
|
|
|
1179
1191
|
});
|
|
1180
1192
|
|
|
1181
1193
|
await adapter.start();
|
|
1182
|
-
expect(adapter.capabilities.controls.sandboxMode).toBe(
|
|
1194
|
+
expect(adapter.capabilities.controls.sandboxMode).toBe(false);
|
|
1183
1195
|
await adapter.startSession({
|
|
1184
1196
|
cwd: '/tmp/project',
|
|
1185
1197
|
model: 'opencode/big-pickle',
|
|
@@ -151,7 +151,7 @@ const opencodeCapabilities: AgentProviderCapabilities = {
|
|
|
151
151
|
controls: {
|
|
152
152
|
planMode: true,
|
|
153
153
|
permissionRequests: false,
|
|
154
|
-
sandboxMode:
|
|
154
|
+
sandboxMode: false,
|
|
155
155
|
performanceMode: false,
|
|
156
156
|
goals: false,
|
|
157
157
|
},
|
|
@@ -777,7 +777,6 @@ export class OpenCodeRuntimeAdapter extends EventEmitter implements AgentRuntime
|
|
|
777
777
|
toolboxItems: [
|
|
778
778
|
{ action: 'compact', command: '/compact', label: 'Compact' },
|
|
779
779
|
{ action: 'fork', command: '/fork', label: 'Fork', panel: 'fork' },
|
|
780
|
-
{ action: 'mcp', command: '/mcp', label: 'MCP', panel: 'mcp' },
|
|
781
780
|
],
|
|
782
781
|
hookCommandTemplates: [],
|
|
783
782
|
providerConfigFormat: 'json',
|
|
@@ -19,6 +19,7 @@ export type ApiErrorCode =
|
|
|
19
19
|
| 'unauthorized'
|
|
20
20
|
| 'not_found'
|
|
21
21
|
| 'conflict'
|
|
22
|
+
| 'confirmation_required'
|
|
22
23
|
| 'provider_goal_error'
|
|
23
24
|
| 'forbidden'
|
|
24
25
|
| 'unauthorized'
|
|
@@ -310,7 +311,9 @@ export type AgentBackendToolboxActionDto =
|
|
|
310
311
|
| 'fork'
|
|
311
312
|
| 'skills'
|
|
312
313
|
| 'mcp'
|
|
313
|
-
| 'hooks'
|
|
314
|
+
| 'hooks'
|
|
315
|
+
| 'prompt'
|
|
316
|
+
| 'unsupported';
|
|
314
317
|
|
|
315
318
|
export interface AgentBackendToolboxItemSchemaDto {
|
|
316
319
|
action: AgentBackendToolboxActionDto;
|