feat: add JavaScript session orchestration runtime

This commit is contained in:
shiyue
2026-08-26 10:09:26 +08:00
parent 05480e511d
commit f15bc92d1e
17 changed files with 1483 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ const http = require('http');
const https = require('https');
const fs = require('fs');
const path = require('path');
const { SCRIPT_TOOL_DEFINITIONS } = require('./javascript-session-runtime');
const SERVER_INFO = {
name: 'ccweb',
@@ -28,6 +29,11 @@ const CODEX_APP_COMMUNICATION_TOOL_NAMES = new Set([
const HIDDEN_CALLABLE_TOOL_NAMES = new Set([
'ccweb_request_reply',
'ccweb_task_update',
'ccweb_script_get_current_conversation_id',
'ccweb_script_create_conversation',
'ccweb_script_send_message',
'ccweb_script_select_semantic_branch',
'ccweb_script_get_last_message',
]);
const TOOLS = [
@@ -307,6 +313,7 @@ const TOOLS = [
additionalProperties: false,
},
},
...SCRIPT_TOOL_DEFINITIONS,
];
function imageMimeFromPath(filePath) {