Job 1788349667482

Command: python -c "from pathlib import Path;ls=Path(r'C:\Users\ash\ChatGPTMasterBridge\Code.gs').read_text(encoding='utf-8',errors='replace').splitlines();print('\n'.join(f'{i+1}:{ls[i]}' for i in range(0,min(35,len(ls)))))"
Directory: projects
Status: SUCCESS
Exit code: 0

Cancel Job Rerun Command Refresh

1:const MASTER_REVISION = '20260902-master-bridge-v1';
2:const MASTER_ID = 'chatgpt-master-bridge-v1';
3:const DEFAULT_TARGET = 'pc';
4:const DEFAULT_SPREADSHEET_ID = '1HkbrZ7Phos3GVMBhi-1xPDr3wIBxRcBF6mNzabYqhmE';
5:const REGISTRY_PROPERTY = 'MASTER_BRIDGE_REGISTRY_V1';
6:const RELAY_KEY_PROPERTY = 'BRIDGE_RELAY_KEY';
7:const COMMANDS_SHEET = 'commands';
8:const RESULTS_SHEET = 'results';
9:const STATE_SHEET = 'state';
10:const ARTIFACTS_SHEET = 'artifacts';
11:const MAX_CELL_CHARS = 45000;
12:
13:const COMMAND_HEADERS = ['id', 'created_at', 'action', 'payload_json', 'status', 'confirm', 'claimed_at', 'completed_at', 'result_ref', 'error', 'attempts', 'notes'];
14:const RESULT_HEADERS = ['id', 'command_id', 'completed_at', 'status', 'http_status', 'result_text', 'error', 'duration_ms', 'result_sha256', 'truncated'];
15:const STATE_HEADERS = ['key', 'value', 'updated_at', 'notes'];
16:const ARTIFACT_HEADERS = ['id', 'command_id', 'name', 'mime_type', 'size', 'sha256', 'drive_url_or_ref', 'created_at'];
17:
18:function doGet(e) {
19:  return handleRequest_(e, null);
20:}
21:
22:function doPost(e) {
23:  let body = {};
24:  if (e && e.postData && e.postData.contents) {
25:    try {
26:      body = JSON.parse(e.postData.contents);
27:    } catch (err) {
28:      return json_({ ok: false, error: 'invalid_json' }, 400);
29:    }
30:  }
31:  return handleRequest_(e, body);
32:}
33:
34:function handleRequest_(e, body) {
35:  const params = (e && e.parameter) || {};